summaryrefslogtreecommitdiffstats
path: root/templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/layout.html')
-rw-r--r--templates/layout.html92
1 files changed, 42 insertions, 50 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 86ebdd5..f6eb48e 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -7,38 +7,35 @@
<meta name="description" content="Home page of Attero">
<meta name="author" content="Justyna Ilczuk" >
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
- <script src="{{ url_for('static', filename='bootstrap/js/bootstrap.js') }}"></script>
- <link rel=stylesheet type=text/css href="{{ url_for('static', filename='bootstrap/css/bootstrap.css') }}">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
+ <script src="{{ url_for('static', filename='bootstrap/js/bootstrap.js') }}"></script>
+ <link rel=stylesheet type=text/css href="{{ url_for('static', filename='bootstrap/css/bootstrap.css') }}">
-<script type=text/javascript>
- $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
-</script>
+ <script type=text/javascript>
+ $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
+ </script>
-<script >
+ <script >
-$("document").ready( function() {
- $('.submenu').hover(function () {
- console.log("hover");
- $(this).children('ul').removeClass('submenu-hide').addClass('submenu-show');
-
- }, function () {
- console.log("hide");
- $(this).children('ul').removeClass('.submenu-show').addClass('submenu-hide');
- }).find("a:first").append(" &raquo; ");
+ $("document").ready( function() {
+ $('.submenu').hover(function () {
+ console.log("hover");
+ $(this).children('ul').removeClass('submenu-hide').addClass('submenu-show');
+
+ }, function () {
+ console.log("hide");
+ $(this).children('ul').removeClass('.submenu-show').addClass('submenu-hide');
+ }).find("a:first").append(" &raquo; ");
-});
+ });
-
-
-
-</script>
+ </script>
</head>
<style type="text/css">
body {
- padding-top: 40px;
+ padding-top: 20px;
padding-bottom: 40px;
}
@@ -90,7 +87,7 @@ $("document").ready( function() {
</div>
- <div class="navbar well-small">
+ <div class="navbar well-small navbar-inverse">
<div class="navbar-inner">
<ul class="nav">
<li class="active" id="home"><a href="/view" >Home</a></li>
@@ -136,40 +133,37 @@ $("document").ready( function() {
<ul class="dropdown-menu">
<li class="nav-header">Year</li>
- {%- for key, year in all_dates.items() recursive %}
+ {%- for key, year in all_dates.items() recursive %}
<li class="dropdown submenu">
- <a href="#" class="dropdown-toggle" id="{{key}}" data-toggle="dropdown">{{key}}</a>
+ <a href="#" class="dropdown-toggle" id="{{key}}" data-toggle="dropdown">{{key}}</a>
{%- if year %}
-
- <ul class="dropdown-menu submenu-hide">
- <li class="nav-header">Month</li>
- {% for month, days in year.items() %}
-
- <li class="dropdown submenu">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{month}}</a>
-
- <ul class="dropdown-menu submenu-show submenu-hide">
- <li class="nav-header">Day</li>
- {% for day in days %}
- <li><a href="/date/{{day.source}}">{{day.weekday}}, {{day.day}}</a></li>
- {% endfor %}
- </ul>
- </li>
- {% endfor %}
- </ul>
+
+ <ul class="dropdown-menu submenu-hide">
+ <li class="nav-header">Month</li>
+ {% for month, days in year.items() %}
+
+ <li class="dropdown submenu">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{month}}</a>
+
+ <ul class="dropdown-menu submenu-show submenu-hide">
+ <li class="nav-header">Day</li>
+ {% for day in days %}
+ <li><a href="/date/{{day.source}}">{{day.weekday}}, {{day.day}}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endfor %}
+ </ul>
- {%-endif%}
- </li>
- {%- endfor %}
-
+ {%-endif%}
+ </li>
+ {%- endfor %}
</ul>
</div>
</ul>
</li>
-
-
<li>
<li id="search" ><a href="/search" >Advanced search</a></li>
</li>
@@ -177,8 +171,6 @@ $("document").ready( function() {
</div>
</div>
-<br />
-<br />
{% block body %}
{% endblock %}