diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 16:49:43 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 16:49:43 +0530 |
commit | a6b3209c78d2abcd3e53014bc0f3c9faa1bd8ba6 (patch) | |
tree | 830e291bed994a9a6884d0042a5e65525af5ae77 /gnowsys-ndf/gnowsys_ndf | |
parent | 83eb43b26bb2824a1c97f277ce1fca72ef4940d1 (diff) | |
download | gnowsys-a6b3209c78d2abcd3e53014bc0f3c9faa1bd8ba6.tar.gz |
Showing ebook gst's info on LHS
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html | 15 | ||||
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/e-book.py | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html index b1a184f..44cd105 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html @@ -4,6 +4,21 @@ {% block title %} Repository {% endblock %} + +{% block meta_content %} + <a href="{% url 'e-book' group_name_tag %}" title="Click to go to ebooks"> + <h2 class="subheader"> + {% if ebook_gst.altnames and ebook_gst.altnames != "None" %} + {{ebook_gst.altnames}} + {% else %} + {{ebook_gst.name}} + {% endif%} + </h2> + </a> + {{ebook_gst.content|safe}} +{% endblock %} + + {% block body_content %} <ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4"> diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/e-book.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/e-book.py index cef517a..1384560 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/e-book.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/e-book.py @@ -45,5 +45,6 @@ def ebook_listing(request, group_id, page_no=1): # context_instance=RequestContext(request) ) return render_to_response("ndf/ebook.html", - {"all_ebooks": all_ebooks, "group_id": group_id, "groupid": group_id}, + {"all_ebooks": all_ebooks, "ebook_gst": ebook_gst, + "group_id": group_id, "groupid": group_id}, context_instance = RequestContext(request)) |