Added newst version of Bootstrap

Added "create" menupoint
Added icons to the menupoints
This commit is contained in:
sqozz
2015-02-05 22:38:39 +01:00
parent a8bf953078
commit 72daa11c33
8 changed files with 310 additions and 4 deletions

9
templates/create.html Normal file
View File

@ -0,0 +1,9 @@
<!--
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
{% block title %}{{ super() }} - Create{% endblock%}
{% set active_page = "create" %}
{% block content %}
<p>CREATE</p>
{% endblock content%}

View File

@ -2,8 +2,9 @@
vim: ts=2 noexpandtab
-->
{% set navigation_bar = [
("/", "search", "Search"),
("/categorys", "categorys", "Categorys")
("/", "search", "Search", "glyphicon-search"),
("/categorys", "categorys", "Categorys", "glyphicon-th"),
("/create", "create", "Create", "glyphicon-plus")
] -%}
<!DOCTYPE html>
@ -28,8 +29,12 @@ vim: ts=2 noexpandtab
<h3 class="masthead-brand"><a href="/">TorrentIndexer</a></h3>
<nav>
<ul class="nav masthead-nav">
{% for href, id, caption in navigation_bar %}
<li {% if id == active_page %}class="active"{% endif %}><a href="{{ href|e }}">{{ caption|e }}</a></li>
{% for href, id, caption, icon in navigation_bar %}
<li {% if id == active_page %}class="active"{% endif %}>
<a href="{{ href|e }}">
<span class="glyphicon {{ icon|e }}" aria-hidden="true"></span> {{ caption|e }}
</a>
</li>
{% endfor %}
</ul>
</nav>