31f43d5 by Arvind at 2013-01-07 | 1 | <!doctype html> |
544de4f by Anon Ray at 2013-06-27 | 2 | <html> |
3 | <head> |
|
d120774 by Anon Ray at 2014-03-08 | 4 | <meta charset="utf-8"> |
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
f867edb by Anon Ray at 2014-04-10 | 7 | <title>SWT Store</title> |
75d3bd6 by Anon Ray at 2014-02-19 | 8 | <link rel=stylesheet type=text/css href="{{ url_for('.static', filename='css/bootstrap.min.css') }}"> |
d120774 by Anon Ray at 2014-03-08 | 9 | <link rel=stylesheet type=text/css href="{{ url_for('.static', filename='css/bootstrap-theme.min.css') }}"> |
75d3bd6 by Anon Ray at 2014-02-19 | 10 | <link rel=stylesheet type=text/css href="{{ url_for('.static', filename='css/style.css') }}"> |
544de4f by Anon Ray at 2013-06-27 | 11 | {% block head %}{% endblock %} |
12 | </head> |
|
13 | <body> |
|
14 | <div class="container"> |
|
d120774 by Anon Ray at 2014-03-08 | 15 | <div class="header"> |
16 | <ul class="nav nav-tabs pull-right" role="navigation"> |
|
17 | <li> |
|
18 | <a href="{{ url_for('frontend.index') }}"> Home </a> |
|
19 | </li> |
|
8fe0bbc by Anon Ray at 2014-05-10 | 20 | {% if not session.email %} |
d120774 by Anon Ray at 2014-03-08 | 21 | <li> |
22 | <a id="login" href="#"> Login </a> |
|
23 | </li> |
|
544de4f by Anon Ray at 2013-06-27 | 24 | {% else %} |
8fe0bbc by Anon Ray at 2014-05-10 | 25 | <!-- swts list --> |
26 | <li> |
|
27 | <a href="{{ url_for('user.mySweets') }}"> My Sweets </a> |
|
28 | </li> |
|
d120774 by Anon Ray at 2014-03-08 | 29 | <!-- the cog menu --> |
30 | <li class="dropdown user-menu"> |
|
31 | <a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
|
32 | <span class="glyphicon glyphicon-cog"></span> |
|
33 | </a> |
|
34 | <ul class="dropdown-menu" role="menu"> |
|
35 | <li> <a href="{{ url_for('app.register') }}">Register New App</a> </li> |
|
8fe0bbc by Anon Ray at 2014-05-10 | 36 | <li> <a href="{{ url_for('user.myApps') }}">Registered Apps</a> </li> |
d120774 by Anon Ray at 2014-03-08 | 37 | <li class="divider"></li> |
38 | <li> <a href="{{ url_for('context.register') }}">Register New Context</a> </li> |
|
8fe0bbc by Anon Ray at 2014-05-10 | 39 | <li> <a href="{{ url_for('user.myContexts') }}">Registered Contexts</a> </li> |
d120774 by Anon Ray at 2014-03-08 | 40 | </ul> |
41 | </li> |
|
42 | <!-- the user menu --> |
|
43 | <li class="dropdown user-menu"> |
|
44 | <a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
|
45 | <span class="glyphicon glyphicon-user"></span> |
|
46 | <span class="caret"></span> |
|
47 | </a> |
|
48 | <ul class="dropdown-menu" role="menu"> |
|
49 | <li> |
|
50 | <a href="{{ url_for('user.profile') }}"><small> |
|
8fe0bbc by Anon Ray at 2014-05-10 | 51 | {{ session.email }} |
d120774 by Anon Ray at 2014-03-08 | 52 | </small></a> |
53 | </li> |
|
54 | <li class="divider"></li> |
|
f867edb by Anon Ray at 2014-04-10 | 55 | <li> <a href="#" id="logout"> Logout </a> </li> |
d120774 by Anon Ray at 2014-03-08 | 56 | </ul> |
57 | </li> |
|
544de4f by Anon Ray at 2013-06-27 | 58 | {% endif %} |
d120774 by Anon Ray at 2014-03-08 | 59 | </ul> |
60 | <h3 class="text-muted"> SWTStore </h3> |
|
61 | </div> |
|
62 | <div class="notif"> |
|
544de4f by Anon Ray at 2013-06-27 | 63 | {% for message in get_flashed_messages() %} |
f867edb by Anon Ray at 2014-04-10 | 64 | <div class="alert alert-danger">{{ message }}</div> |
544de4f by Anon Ray at 2013-06-27 | 65 | {% endfor %} |
d120774 by Anon Ray at 2014-03-08 | 66 | </div> |
67 | <div class="content"> |
|
544de4f by Anon Ray at 2013-06-27 | 68 | {% block body %}{% endblock %} |
69 | </div> |
|
d120774 by Anon Ray at 2014-03-08 | 70 | <!--div class="footer"> |
71 | <a href="http://swtr.us">What is swt web?</a> • |
|
72 | <a href="http://swtr.us">FAQ</a> • |
|
73 | <a href="http://swtr.us">Help</a> • |
|
74 | <a href="#">Stats</a> |
|
75 | </div--> |
|
544de4f by Anon Ray at 2013-06-27 | 76 | </div> |
d120774 by Anon Ray at 2014-03-08 | 77 | |
78 | <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> |
|
75d3bd6 by Anon Ray at 2014-02-19 | 79 | <!--script>window.jQuery || document.write('<script src="{{ url_for('.static', filename='js/jquery-1.9.1.min.js')}}"><\/script>')</script--> |
d120774 by Anon Ray at 2014-03-08 | 80 | <script src="{{ url_for('.static', filename='js/lib/bootstrap.min.js') }}"></script> |
81 | <script src="https://login.persona.org/include.js"></script> |
|
82 | ||
83 | <script> |
|
84 | window.ss = window.ss || {}; |
|
85 | ss.loginURL = function() { return "{{ url_for('user.login') }}"; }; |
|
86 | ss.logoutURL = function() { return "{{ url_for('user.logout') }}"; }; |
|
87 | ss.loggedInUser = function() { |
|
8fe0bbc by Anon Ray at 2014-05-10 | 88 | return ("{{ session.email }}") ? "{{ session.email }}" : null; |
d120774 by Anon Ray at 2014-03-08 | 89 | }; |
90 | window.onload = function() { |
|
91 | ss.init(); |
|
92 | }; |
|
93 | </script> |
|
94 | <script src="{{ url_for('.static', filename='js/main.js') }}"></script> |
|
95 | {% block scripts %} {% endblock %} |
|
544de4f by Anon Ray at 2013-06-27 | 96 | </body> |
97 | </html> |