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