2b4c217 by Anon Ray at 2013-10-03 | 1 | {% extends "base.html" %} |
3ce3fe9 by Anon Ray at 2012-11-23 | 2 | |
2b4c217 by Anon Ray at 2013-10-03 | 3 | {% block head %} |
6607806 by Anon Ray at 2014-02-24 | 4 | <link rel="stylesheet" href="{{url_for('static', filename='css/main.css')}}"> |
2b4c217 by Anon Ray at 2013-10-03 | 5 | <title> {{ title }} </title> |
6 | {% endblock %} |
|
3ce3fe9 by Anon Ray at 2012-11-23 | 7 | |
2b4c217 by Anon Ray at 2013-10-03 | 8 | {% block body %} |
9 | <div class="container" id="container"> |
|
10 | <div id="header"> |
|
9fa0b56 by Anon Ray at 2014-01-16 | 11 | <div id="header-banner"> |
12 | {{ content['header']['html']|safe }} |
|
13 | </div> |
|
2b4c217 by Anon Ray at 2013-10-03 | 14 | <div id="navigation"></div> |
15 | </div> |
|
16 | <div id="content-container"></div> |
|
9fa0b56 by Anon Ray at 2014-01-16 | 17 | <div id="footer"> {{ content['footer']['html']|safe }} </div> |
2b4c217 by Anon Ray at 2013-10-03 | 18 | </div> |
0769e59 by Anon Ray at 2013-10-03 | 19 | |
2b4c217 by Anon Ray at 2013-10-03 | 20 | <script> |
21 | //Code to initialize the framework |
|
22 | window.M = window.M || {}; |
|
23 | M.MenuURL = function() { return "{{ url_for('insertMenu') }}"}; |
|
24 | M.PageURL = function() { return "{{ url_for('insertPage') }}"; }; |
|
d2a059f by Anon Ray at 2014-02-24 | 25 | M.AnalyticsURL = function() { return "{{ url_for('analytics') }}"; }; |
2b4c217 by Anon Ray at 2013-10-03 | 26 | M.site_content = {{ content|tojson|safe }}; |
27 | window.onload = function() { |
|
28 | M.init(); |
|
29 | }; |
|
30 | </script> |
|
3ce3fe9 by Anon Ray at 2012-11-23 | 31 | |
2b4c217 by Anon Ray at 2013-10-03 | 32 | {% endblock %} |
3ce3fe9 by Anon Ray at 2012-11-23 | 33 | |
2b4c217 by Anon Ray at 2013-10-03 | 34 | {% block scripts %} |
35 | <script src="{{url_for('static', filename='js/mouchak.js')}}"></script> |
|
36 | <script src="{{url_for('static', filename='js/models.js')}}"></script> |
|
37 | <script src="{{url_for('static', filename='js/views.js')}}"></script> |
|
38 | {% endblock %} |
|
3ce3fe9 by Anon Ray at 2012-11-23 | 39 | |
2b4c217 by Anon Ray at 2013-10-03 | 40 | {% block templates %} |
899c2c7 by Anon Ray at 2013-01-25 | 41 | |
2b4c217 by Anon Ray at 2013-10-03 | 42 | <!-- Underscore templates --> |
43 | <script type="text/template" id="news-template"> |
|
44 | <div id="feeds"> |
|
45 | <img src="img/ajax-loader.gif" id="feeds-loader"/> |
|
46 | </div> |
|
47 | </script> |
|
48 | <script type="text/template" id="news-item-template"> |
|
49 | <div class="news-item-wrapper"> |
|
50 | <div class="news-title"><%= title %></div> |
|
51 | <a href="<%= link %>">Read More</a> |
|
52 | </div> |
|
53 | </script> |
|
d296833 by Anon Ray at 2013-05-20 | 54 | |
2b4c217 by Anon Ray at 2013-10-03 | 55 | <!-- navigation templates |
56 | the ones with .nav-type can be used interchangbly to render different |
|
57 | kinds of navigation bar / components |
|
58 | one can add more |
|
59 | --> |
|
60 | <script type="text/template" id="nav-bar-template" class="nav-type"> |
|
61 | <div class="navbar navbar-default" role="navigation"> |
|
62 | <!-- Brand and toggle get grouped for better mobile display --> |
|
63 | <div class="navbar-header"> |
|
64 | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> |
|
65 | <span class="sr-only">Toggle navigation</span> |
|
66 | <span class="icon-bar"></span> |
|
67 | <span class="icon-bar"></span> |
|
68 | <span class="icon-bar"></span> |
|
69 | </button> |
|
70 | <a class="navbar-brand" href="<%= brand_href %>"><%= brand %></a> |
|
71 | </div> |
|
72 | <!-- Collect the nav links, forms, and other content for toggling --> |
|
73 | <div class="collapse navbar-collapse navbar-ex1-collapse"> |
|
74 | <ul class="nav navbar-nav"></ul> |
|
899c2c7 by Anon Ray at 2013-01-25 | 75 | </div> |
2b4c217 by Anon Ray at 2013-10-03 | 76 | </div> |
77 | </script> |
|
d296833 by Anon Ray at 2013-05-20 | 78 | |
2b4c217 by Anon Ray at 2013-10-03 | 79 | <script type="text/template" id="nav-pills-template" class="nav-type"> |
80 | <div class="navigation"> |
|
81 | <ul class="nav nav-pills"></ul> |
|
82 | </div> |
|
83 | </script> |
|
d296833 by Anon Ray at 2013-05-20 | 84 | |
2b4c217 by Anon Ray at 2013-10-03 | 85 | <script type="text/template" id="nav-item-template"> |
86 | <li class="<%= cls %>"> |
|
87 | <a href="#/<%=page%>"> <%= M.humanReadable(page) %> </a> |
|
88 | </li> |
|
89 | </script> |
|
899c2c7 by Anon Ray at 2013-01-25 | 90 | |
2b4c217 by Anon Ray at 2013-10-03 | 91 | <script type="text/template" id="nav-dropdown-template"> |
92 | <li class="dropdown"> |
|
93 | <a class="dropdown-toggle" data-toggle="dropdown" href="#/<%= M.sanitize(name) %>" |
|
94 | data-target='#'> |
|
95 | <%= name %> |
|
96 | <b class="caret"></b> |
|
97 | </a> |
|
98 | <ul class="dropdown-menu"> |
|
99 | <% _.each(list, function(item) { |
|
100 | %> |
|
101 | <li><a href="#/<%= M.sanitize(item) %>"> <%= item %> </a></li> |
|
102 | <% |
|
103 | }); |
|
104 | %> |
|
105 | </ul> |
|
106 | </li> |
|
107 | </script> |
|
748ffb6 by Arvind at 2013-09-30 | 108 | |
2b4c217 by Anon Ray at 2013-10-03 | 109 | <!-- Template for map--> |
110 | <script type="text/template" id="map-template"> |
|
111 | <div id="map"> |
|
112 | </div> |
|
113 | </script> |
|
748ffb6 by Arvind at 2013-09-30 | 114 | |
2b4c217 by Anon Ray at 2013-10-03 | 115 | <script type="text/template" id="image-view-template"> |
116 | <div class="img-wrapper"> |
|
117 | <img src="<%= src %>"> |
|
118 | </div> |
|
119 | </script> |
|
748ffb6 by Arvind at 2013-09-30 | 120 | |
2b4c217 by Anon Ray at 2013-10-03 | 121 | {% endblock %} |