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