Added newst version of Bootstrap
Added "create" menupoint Added icons to the menupoints
This commit is contained in:
9
templates/create.html
Normal file
9
templates/create.html
Normal 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%}
|
@ -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>
|
||||
|
Reference in New Issue
Block a user