From ba58a895fb7ab1196238773fc156f17b5896578d Mon Sep 17 00:00:00 2001 From: Alice Date: Sun, 3 Jun 2018 16:30:16 +0200 Subject: [PATCH] added description next to each stack tab --- app/templates/show_stack_detail.html | 9 ++------- app/templates/show_stacks.html | 3 +-- app/views.py | 11 +++++++++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/templates/show_stack_detail.html b/app/templates/show_stack_detail.html index 8cee949..1fc8779 100644 --- a/app/templates/show_stack_detail.html +++ b/app/templates/show_stack_detail.html @@ -1,3 +1,4 @@ +{% extends 'base.html' %} {% block main %}
@@ -5,13 +6,7 @@

{{ stack.stack_name }}

-

Stack description: -{% for stack in stacks %} - - {{ stack.stack_description }} - -{% endfor %} -

+

Stack description: {{ stack.stack_description }}

Books in this stack: {% for book in stack.books %}

  • {{book.title}}
  • diff --git a/app/templates/show_stacks.html b/app/templates/show_stacks.html index 613f971..898fa10 100644 --- a/app/templates/show_stacks.html +++ b/app/templates/show_stacks.html @@ -11,8 +11,7 @@