diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 16:46:36 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 16:46:36 +0530 |
commit | 46bb5930d2f476370d53a8b13a1bb1d191886790 (patch) | |
tree | 27031000fdcd55cd04a2f3d3d4eaff30c6aca76e /gnowsys-ndf/gnowsys_ndf/ndf | |
parent | c407ee3182fd3b18e43a7f2fe188d40c184a6dbb (diff) | |
download | gnowsys-46bb5930d2f476370d53a8b13a1bb1d191886790.tar.gz |
Showing course gst's info on LHS
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html | 29 | ||||
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/course.py | 2 |
2 files changed, 21 insertions, 10 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html index 6573df0e..43a5da33 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html @@ -12,16 +12,27 @@ {% block meta_content %} - <h2 class="subheader">{% trans "Courses" %}</h2> - {% if user.is_authenticated %} - {% user_access_policy groupid request.user as user_access %} - {% if user_access == "allow" %} - <a class="small button" href="{% url 'create_edit' group_name_tag %}"> - <span class="fi-plus"> {% trans "New" %} {{title}} </span> - </a> - <a class="small publish-btn button" style="width:73%" href="{% url 'ann_course_create_edit' group_id app_id app_set_id %}">{% trans "Announce" %}</a> - {% endif %} + + <a href="{% url course_gst.name|lower group_name_tag %}"> + <h2 class="subheader"> + {% if course_gst.altnames and course_gst.altnames != "None" %} + {{course_gst.altnames}} + {% else %} + {{course_gst.name}} + {% endif%} + </h2> + {{course_gst.content|safe}} + </a> + + {% if user.is_authenticated %} + {% user_access_policy groupid request.user as user_access %} + {% if user_access == "allow" %} + <a class="small button" href="{% url 'create_edit' group_name_tag %}"> + <span class="fi-plus"> {% trans "New" %} {{title}} </span> + </a> + <a class="small publish-btn button" style="width:73%" href="{% url 'ann_course_create_edit' group_id app_id app_set_id %}">{% trans "Announce" %}</a> {% endif %} + {% endif %} {% endblock %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/course.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/course.py index 72e30aeb..02a7f36d 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/course.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/course.py @@ -98,7 +98,7 @@ def course(request, group_id, course_id=None): return render_to_response("ndf/course.html", {'title': title, - 'app_id': app_id, + 'app_id': app_id, 'course_gst': GST_COURSE, 'app_set_id': app_set_id, 'searching': True, 'course_coll': course_coll, 'groupid': group_id, 'group_id': group_id, |