aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/layout.mako
blob: 64b60a8960980d19c83bdc73137d44de4b439835 (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
<!DOCTYPE html>
<html>
<%namespace name="helpers" file="jm2l:templates/helpers.mako"/>
<head>
<title>JM2L 2015</title>
  <meta charset="utf-8">
  <meta name="keywords" content="python web application" />
  <meta name="description" content="jm2l LinuxAzur journée méditéranéenne logiciel libre" />
  <!-- Force latest IE rendering engine or ChromeFrame if installed -->
  <!--[if IE]>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <![endif]-->
  <link rel="shortcut icon" href="/static/favicon.ico" />
  <link rel="stylesheet" href="/css/pylons.css" type="text/css" media="screen" charset="utf-8" />  
  <link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" media="screen" />
  <link rel="stylesheet" href="/css/jm2l.css" type="text/css" media="screen" />
  <link rel="stylesheet" href="/css/bootstrap-responsive.css">
  ${self.cssAddOn()}
  <!--[if lte IE 6]>
  <link rel="stylesheet" href="/static/ie6.css" type="text/css" media="screen" charset="utf-8" />
  <![endif]-->
  <script src="/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
</head>
<body>
<%
context._kwargs['postpone_js']=[]
DisplayYear = request.session.get('year', 2015)
%>
<%def name="jsAddOn()"></%def>
<%def name="cssAddOn()"></%def>
${helpers.uploader_js()}

<div id="wrap">
    <div id="top" style="background: url( ${"/img/%s/headerbg.png" % DisplayYear} ) repeat-x scroll 0 top #ffffff;">
      <div class="align-center">
        <div><img src="${"/img/%s/logo.png" % DisplayYear}" height="215" alt="JM2L 2015"/></div>
      </div>
    </div>
    <div id="middle">
          <div class="navbar">
            <div class="navbar-inner">
              <div class="container">
                  <ul class="nav pull-left">
                    <div class="btn-group">
                        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                            <span class="brand" href="/" style="padding: 0 10px 0 18px;">JM2L
                            <small>${DisplayYear}</small>&nbsp;<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                        % for tmpyear in range(2015, 2005, -1):
                          % if tmpyear!=2014:
                            <li><a href="/year/${tmpyear}">${tmpyear}</a></li>
                          % endif
                        % endfor
                        </ul>
                    </div>
                    <div class="btn-group">
                        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                            % if request.user:
                                <i class="icon-user"></i> ${request.user.prenom} ${request.user.nom}
                            % else:
                                <i class="icon-user icon-white"></i> Visiteur
                            % endif
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            % if request.user:
                                % if request.user.Staff:
                                    <li><a href="/Staff">Partie Staff</a></li>
                                % endif
                                <li><a href="/sign/out">Me déconnecter</a></li>
                            % else:
                                <li><a href="/participer-l-evenement#inscription">Je m'inscris</a></li>
                                <li><a href="/sign/login">Je m'identifie</a></li>
                            % endif
                        </ul>
                    </div>
                  </ul>
               
                <ul class="nav nav-pills pull-right">                   
                  <li class="${programme or ''}"><a href="/${DisplayYear}/le-programme">Programme</a></li>
                  <li class="${presse or ''}"><a href="/${DisplayYear}/dossier-de-presse">Presse</a></li>
                  <li class="${plan or ''}"><a href="/nous-rejoindre">Contact et Plan</a></li>
                % if request.user:
                  <li class="${participer or ''}"><a href="/MesJM2L">Mes JM2L</a></li>
                % else:
                  <li class="${participer or ''}"><a href="/participer-l-evenement">Participer</a></li>
                % endif                  
                </ul>

              </div>
            </div>
          </div>
          
      <div class="middle align-center">
      </div>
    </div>
    <div id="bottom">
      <div class="bottom">
        ${next.body()}
      </div>
    </div>
  </div>

##  <br><br><br>
##  <div id="footer">
##    <div class="footer">CopyFriendly ~ JM2L 2005-2015 ~ +33 (0) 6 52 42 31 37
##        <br>Ni les représentant légaux de l'équipe de Linux-Azur,
##         ni l'équipe de coordination des JM2L ne sont résponsable des 
##        informations publiés par les intervenants, dans le doute merci de nous contacter.
##    </div>
  <script src="/vendor/jquery.min.js"></script>
  <script src="/vendor/bootstrap.min.js"></script>
  <script src="/vendor/fileupload/js/jquery-uploader.min.js"></script>
  <script src="/vendor/ckeditor/ckeditor.js"></script>
  ${self.jsAddOn()}
## Then Handle Javascript
<script>
% for jsitem in context._kwargs['postpone_js']:
${jsitem | n}
% endfor
$.each( $('.fileupload'), 
    function( NumCtrl, Ctrl ) {
        $("#"+Ctrl.id).fileupload({
                    // Uncomment the following to send cross-domain cookies:
                    //xhrFields: {withCredentials: true},
                    //url: '/uploader/proceed/'
                    url: this.action
                });
        // Enable iframe cross-domain access via redirect option:
        $("#"+Ctrl.id).fileupload(
            'option',
            'redirect',
            window.location.href.replace(
                /\/[^\/]*$/,
                '/cors/result.html?%s'
            )
        );
        $("#"+Ctrl.id).addClass('fileupload-processing');
        $.ajax({
            // Uncomment the following to send cross-domain cookies:
            //xhrFields: {withCredentials: true},
            //url: this.action,
            url: $("#"+Ctrl.id).fileupload('option', 'url'),
            //url: "uploader/proceed/",
            dataType: 'json',
            context: $("#"+Ctrl.id)[0]
        }).always(function () {
            $(this).removeClass('fileupload-processing');
        }).done(function (result) {
            $(this).fileupload('option', 'done')
                .call(this, $.Event('done'), {result: result}); //$(this)});
        });
    }
);
</script>

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.style-python.fr/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 4]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.style-python.fr/piwik.php?idsite=4" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

</body>
</html>