Commit b2a5004a0f96e856af91489445bb9c30ab6cd1f5
1 parent
60e5b527
Add displaying sequence in subdocument annotation, remove account options in the…
… navbar in /document-list
Showing
2 changed files
with
6 additions
and
2 deletions
collector/storage/templates/storage/annotation.html
... | ... | @@ -47,7 +47,11 @@ |
47 | 47 | {% if document.source_url %} |
48 | 48 | <p>(<a href="{{ document.source_url }}" >{{ document.id }}</a>)</p> |
49 | 49 | {% else %} |
50 | - <p>{{ document.name }}</p> | |
50 | + <p>{{ document.name }} | |
51 | + {% if document.parent %} | |
52 | + fragment nr: {{ document.sequence }} | |
53 | + {% endif %} | |
54 | + </p> | |
51 | 55 | {% endif %} |
52 | 56 | </div> |
53 | 57 | |
... | ... |
collector/storage/templates/storage/base.html
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | </div> |
29 | 29 | <div class="navbar-nav ml-auto"> |
30 | 30 | {% if user.is_authenticated %} |
31 | - {% if not document and not documents %} | |
31 | + {% if not document and not document_list %} | |
32 | 32 | <a class="nav-item nav-link" href="{% url 'accounts:change_password' %}">Zmień hasło</a> |
33 | 33 | <a class="nav-item nav-link" href="{% url 'accounts:logout' %}">Wyloguj</a> |
34 | 34 | {% endif %} |
... | ... |