]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Highlight "My Drafts" when needed
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 15:26:18 +0000 (16:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 15:26:18 +0000 (16:26 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/base.html

index 7a737b72ecfb8a92d4aebca62f627fcaaefd5f81..5f3d411087818b6e13a2b25f75c462959b5f9f13 100644 (file)
@@ -32,7 +32,7 @@
 
                                        {% if current_user %}
                                                <li class="nav-item">
-                                                       <a class="nav-link" href="/drafts">
+                                                       <a class="nav-link {% if request.path == "/drafts" %}active{% end %}" href="/drafts">
                                                                {{ _("My Drafts") }}
                                                        </a>
                                                </li>