summaryrefslogtreecommitdiffstats
path: root/templates/layout.html
blob: f6eb48e1c2f98a57d73c9b44d97fdcc905856203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>nooz</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <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 type=text/javascript>
      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
    </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; ");

      });

    </script>
  </head>

  <style type="text/css">
      body {
        padding-top: 20px;
        padding-bottom: 40px;
      }

      .submenu-show
      {
        border-radius: 3px;
        display: block;
        left: 95%;
        margin-top: -50px !important;
        moz-border-radius: 3px;
        position: absolute;
        webkit-border-radius: 3px;
        }
        .submenu-hide
        {
            display: none !important;
            float: right;
            position: relative;
            top: auto;
        }
        .navbar .submenu-show:before
        {
            border-bottom: 7px solid transparent;
            border-left: none;
            border-right: 7px solid rgba(0, 0, 0, 0.2);
            border-top: 7px solid transparent;
            left: 7px;
            top: 10px;
            padding-left: 5px;
            position: absolute;
        }


        .navbar .submenu-show:after
        {
            border-bottom: 6px solid transparent;
            border-left: none;
            border-right: 6px solid #fff;
            border-top: 6px solid transparent;
            left: 10px;
            top: 11px;
        }
  </style>
    
  <body>
    <div class="well-small">
      <h1>Nooz - the gallery of notes</h1>
      <p id="communicates"> </p>
    </div>


		<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>
      				<li id="about"><a href="/about" >About</a></li>
      				<li id="source"><a href="http://git.hackerspace.pl/attero/nooz/" >Source</a></li>
   
					<li>
            <ul class="nav ">
						<div class="dropdown">
  							<a class="btn dropdown-toggle " data-toggle="dropdown" href="#">
   	 							Subject
    							<span class="caret"></span>
  							</a>
    
  							<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                  {% for subject in all_subjects %}
                    <li><a href="/subject/{{ subject }}">{{ subject }}</a> </li>
                  {% endfor %}
  							</ul>

						</div>
          </ul>
					</li>
					<li>
            <ul class="nav ">
						<div class="dropdown">
  							<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
    							Date
    							<span class="caret"></span>  
  							</a>
    
  						
              <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                <li> submenu 
                  <ul class="dropdown-submenu">
                  <li>n</li>
                  </ul>
                </li>
                
                  <li>
                  </li>
  							</ul>

              <ul class="dropdown-menu">
                <li class="nav-header">Year</li>
                {%- for key, year in all_dates.items() recursive %}   

                  <li class="dropdown submenu">      
                                  
                    <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>
                                                 
                    {%-endif%} 
                  </li>                                      
                {%- endfor %} 
              </ul>
						</div>
          </ul>
					</li>
          <li>
            <li id="search" ><a href="/search" >Advanced search</a></li>
          </li>
   	 			</ul>
  			</div>
		</div>

{% block body %}

{% endblock %} 
</html>