Commit 1718b9c19a36c65343a7329fee4bb95dbe0dc0bb
1 parent
d1425687
Exists in
master
and in
5 other branches
added menus #238
Showing
4 changed files
with
1 additions
and
71 deletions
Show diff stats
app/templates/home.html
app/templates/home_professor.html
| ... | ... | @@ -15,18 +15,6 @@ |
| 15 | 15 | {% endblock %} |
| 16 | 16 | |
| 17 | 17 | {% block sidebar %} |
| 18 | - <div class="panel panel-primary"> | |
| 19 | - <div class="panel-heading"> | |
| 20 | - <h5>{% trans 'Menu' %}</h5> | |
| 21 | - </div> | |
| 22 | - <div class="panel-body"> | |
| 23 | - <ul class="nav nav-pills nav-stacked"> | |
| 24 | - <li><a href="javascript:void(0)">{% trans 'Pending tasks' %}</a></li> | |
| 25 | - <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li> | |
| 26 | - <li><a href="{% url 'course:manage' %}">{% trans 'Manage Course' %}</a></li> | |
| 27 | - </ul> | |
| 28 | - </div> | |
| 29 | - </div> | |
| 30 | 18 | {% endblock %} |
| 31 | 19 | |
| 32 | 20 | {% block content %} | ... | ... |
app/templates/home_student.html
| ... | ... | @@ -16,19 +16,6 @@ |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | {% block sidebar %} |
| 19 | - <div class="panel panel-primary"> | |
| 20 | - <div class="panel-heading"> | |
| 21 | - <h4>{% trans 'Menu' %}</h4> | |
| 22 | - </div> | |
| 23 | - <div class="panel-body"> | |
| 24 | - <ul class="nav nav-pills nav-stacked"> | |
| 25 | - <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> | |
| 26 | - <li><a href="{% url 'course:manage' %}">{% trans 'My Courses' %}</a></li> | |
| 27 | - <li><a href="{% url 'course:all_courses' %}">{% trans 'All Courses' %}</a></li> | |
| 28 | - <li><a href="javascript:void(0)">{% trans 'Google accounts' %}</a></li> | |
| 29 | - </ul> | |
| 30 | - </div> | |
| 31 | - </div> | |
| 32 | 19 | {% endblock %} |
| 33 | 20 | |
| 34 | 21 | {% block content %} | ... | ... |
core/templates/base.html
| ... | ... | @@ -109,52 +109,6 @@ |
| 109 | 109 | <div class="row"> |
| 110 | 110 | <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 col-xl-2"> |
| 111 | 111 | {% block sidebar %} |
| 112 | - <div class="panel panel-primary navigation"> | |
| 113 | - <div class="panel-heading"> | |
| 114 | - <h4>{% trans "Menu" %}</h4> | |
| 115 | - </div> | |
| 116 | - <div class="panel-body"> | |
| 117 | - <ul class="nav nav-pills nav-stacked"> | |
| 118 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
| 119 | - <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> | |
| 120 | - {% if user|has_role:'student' or not user.is_staff %} | |
| 121 | - <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> | |
| 122 | - <li><a href="{% url 'core:all_courses' %}">{% trans 'All Courses' %}</a></li> | |
| 123 | - {% endif %} | |
| 124 | - {% if user|has_role:'system_admin' %} | |
| 125 | - <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> | |
| 126 | - {% endif %} | |
| 127 | - {% if user|has_role:'system_admin' or user|has_role:'professor' %} | |
| 128 | - <li> | |
| 129 | - <a href="#courses_list" class="accordion" data-toggle="collapse">{% trans 'Manage Courses' %}</a> | |
| 130 | - <div id="courses_list" class="collapse"> | |
| 131 | - <ul class="nav nav-pill nav-stacked accordion_list"> | |
| 132 | - {% for course in courses_list %} | |
| 133 | - <li><a href="{% url 'course:view' course.slug %}">{{ course }}</a></li> | |
| 134 | - {% endfor %} | |
| 135 | - </ul> | |
| 136 | - </div> | |
| 137 | - </li> | |
| 138 | - {% endif %} | |
| 139 | - </ul> | |
| 140 | - </div> | |
| 141 | - </div> | |
| 142 | - | |
| 143 | - {% if user|has_role:'professor' or user|has_role:'system_admin' %} | |
| 144 | - | |
| 145 | - <div class="panel panel-primary navigation"> | |
| 146 | - <div class="panel-heading"> | |
| 147 | - <h3 class="panel-title">{% trans 'Category' %}</h3> | |
| 148 | - </div> | |
| 149 | - <div class="panel-body"> | |
| 150 | - <ul class="nav nav-pills nav-stacked"> | |
| 151 | - <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category'%}</a></li> | |
| 152 | - <li><a href="{% url 'course:manage_cat' %}">{% trans 'List Category' %}</a></li> | |
| 153 | - </ul> | |
| 154 | - </div> | |
| 155 | - </div> | |
| 156 | - | |
| 157 | - {% endif %} | |
| 158 | 112 | {% endblock %} |
| 159 | 113 | </div> |
| 160 | 114 | <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 col-xl-10"> | ... | ... |