##// END OF EJS Templates
Limit number of tags shown in the navigation bar to only the most popular ones.
Limit number of tags shown in the navigation bar to only the most popular ones.

File last commit:

r57:dcbc67f3 default
r57:dcbc67f3 default
Show More
base.html
40 lines | 1.2 KiB | text/html | HtmlLexer
{% load staticfiles %}
{% load i18n %}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="{{ STATIC_URL }}css/{{ theme }}/base_page.css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
{% block head %}{% endblock %}
</head>
<body>
<script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
<script src="{{ STATIC_URL }}js/main.js"></script>
<div id="admin_panel">
{% if request.session.admin == True %}
Admin panel TODO: Need to implement <BR />
{% endif %}
</div>
<div class="navigation_panel">
<a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
{% for tag in tags %}
<a class="tag" href=" {% url 'tag' tag_name=tag.name %}">
{{ tag.name }}</a>({{ tag.get_post_count }})
{% endfor %}
<a class="tag" href="{% url 'tags' %}">[...]</a>
<a class="link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
</div>
{% block content %}{% endblock %}
<div class="navigation_panel">
{% block metapanel %}{% endblock %}
<a class="link" href="#top">{% trans 'Up' %}</a>
</div>
</body>
</html>