diff options
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)) |