summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-26 16:58:43 +0200
committerDan McGee <dan@archlinux.org>2010-05-26 16:59:37 +0200
commitc426fbebb786f4b33fd701f37372c30ebfed796a (patch)
tree9fdf95b9f481cd76f49922a1bf142ea86f907095 /templates/base.html
parent277117ba34204995efac766b715fe62270a5e908 (diff)
downloadarchweb-c426fbebb786f4b33fd701f37372c30ebfed796a.tar.gz
archweb-c426fbebb786f4b33fd701f37372c30ebfed796a.tar.xz
Highlight 'Packages' in navbar when browsing packages
Get this working by doing some class business with CSS in order to highlight the correct tab. I had to add some stuff to a variety of pages but it should be working correctly now. Addresses FS#19591. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html13
1 files changed, 5 insertions, 8 deletions
diff --git a/templates/base.html b/templates/base.html
index 3227fbb..a17ac54 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,22 +11,19 @@
<link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages %}" title="Arch Linux Packages" />
{% block head %}{% endblock %}
</head>
-<body class="{% if user.is_authenticated %}devmode{% endif %} {% block bodyclass %}{% endblock %}">
+<body class="{% if user.is_authenticated %}devmode {% endif %}{% block bodyclass %}{% endblock %}">
- <div id="archnavbar">
+ <div id="archnavbar" class="{% block navbarclass %}anb-home{% endblock %}">
<div id="archnavbarlogo"><h1><a href="/" title="Return to the main page">Arch Linux</a></h1></div>
<div id="archnavbarmenu">
<ul id="archnavbarlist">
- <li id="anb-home" {% ifnotequal path '/download/' %}class="selected"{% endifnotequal %}>
- <a href="/" title="Arch news, packages, projects and more">Home</a></li>
- <li id="anb-packages" {% ifequal path '/packages/' %} class="selected"{% endifequal %}>
- <a href="/packages/" title="Arch Package Database">Packages</a></li>
+ <li id="anb-home"><a href="/" title="Arch news, packages, projects and more">Home</a></li>
+ <li id="anb-packages"><a href="/packages/" title="Arch Package Database">Packages</a></li>
<li id="anb-forums"><a href="http://bbs.archlinux.org/" title="Community forums">Forums</a></li>
<li id="anb-wiki"><a href="http://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
<li id="anb-bugs"><a href="http://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li>
<li id="anb-aur"><a href="http://aur.archlinux.org/" title="Arch Linux User Repository">AUR</a></li>
- <li id="anb-download" {% ifequal path '/download/' %} class="selected"{% endifequal %}>
- <a href="{% url page-download %}" title="Get Arch Linux">Download</a></li>
+ <li id="anb-download"><a href="{% url page-download %}" title="Get Arch Linux">Download</a></li>
</ul>
</div>
</div><!-- #archnavbar -->