Akron | ca9bd98 | 2016-12-06 16:59:57 +0100 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <meta charset="utf-8"/> |
| 3 | <head> |
| 4 | <script src="http://code.jquery.com/jquery-latest.min.js" |
| 5 | type="text/javascript"></script> |
| 6 | <!-- to be able to handle show/hide links in all subclasses --> |
| 7 | <script> |
| 8 | |
| 9 | $(function() { |
| 10 | $("a#show").bind("click", function() { |
| 11 | $("#message").toggle(); |
| 12 | }); |
| 13 | }); |
| 14 | |
| 15 | </script> |
| 16 | <script> |
| 17 | $(document).ready(function() { |
| 18 | $("#menu-toggle").click(function(e) { |
| 19 | e.preventDefault(); |
| 20 | $("#wrapper").toggleClass("toggled"); |
| 21 | }); |
| 22 | }); |
| 23 | |
| 24 | </script> |
| 25 | <!-- bootstrap --> |
| 26 | <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script> |
| 27 | <link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet"> |
| 28 | <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}" media="all"/> |
| 29 | |
| 30 | <div id="heading"> |
| 31 | <span id="loginSpan"> |
| 32 | {% if current_user.is_authenticated() %} |
| 33 | <label>{{ _('logged in as') }} {{current_user.username }}</label> (<a href="{{ url_for('user.logout') }}">logout</a>) |
| 34 | {% else %} |
| 35 | <a href="{{ url_for ('user.login') }}">{{ _('login') }}</a> / <a href="{{ url_for('user.signup') }}">{{ _('sign |
| 36 | up') }}</a> |
| 37 | {% endif %} |
| 38 | </span> |
| 39 | <a href="#menu-toggle" id="menu-toggle"> |
| 40 | <img id="logo" src="{{ url_for('static', filename='korap-logo.svg') }}" alt="IDS Mannheim Logo" |
| 41 | class="img-rounded"> |
| 42 | </a> |
| 43 | |
| 44 | <h2>{{ _("korap.title") }}</h2> |
| 45 | </div> |
| 46 | {% block head %} |
| 47 | {% endblock %} |
| 48 | </head> |
| 49 | <body> |
| 50 | <div id="wrapper" class="toggled"> |
| 51 | <!-- sidebar --> |
| 52 | {% block sidebar %} |
| 53 | <!-- |
| 54 | <a class="glyphicon glyphicon-list" aria-hidden="true" href="#menu-toggle" id="menu-toggle"></a> |
| 55 | --> |
| 56 | <div id="sidebar-wrapper"> |
| 57 | <ul class="sidebar-nav nav"> |
| 58 | <li class="sidebar-brand"></li> |
| 59 | <li class="active"><a href="{{ url_for('app.index')}}">Home</a></li> |
| 60 | <li><a href="{{ url_for('user.profile')}}">User Management</a></li> |
| 61 | <li><a href="{{ url_for('app.index')}}">Resource Management</a></li> |
| 62 | <li><a href="{{ url_for('app.index')}}">OAuth-Token Management</a></li> |
| 63 | <li><a href="{{ url_for('app.search')}}">Query Analysis</a></li> |
| 64 | <li><a href="{{ url_for('app.index')}}">Query Serialization</a></li> |
| 65 | </ul> |
| 66 | </div> |
| 67 | {% endblock %} |
| 68 | <div id="page-content-wrapper"> |
| 69 | <div class="container-fluid"> |
| 70 | <div class="row"> |
| 71 | <div class="col-md-11 content"> |
| 72 | {% if error %} |
| 73 | <p class="warning">{{ error }}</p> |
| 74 | {% else %} |
| 75 | {% block content %}{% endblock %} |
| 76 | {% endif %} |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | |
| 83 | |
| 84 | </body> |
| 85 | <footer> |
| 86 | <!-- /.col-xs-12 main --> |
| 87 | <a class="footer" href="#">Impressum</a> |
| 88 | <a class="footer" href="#">About</a> |
| 89 | <a class="footer" href="#">Contact</a> |
| 90 | |
| 91 | </footer> |
| 92 | </body> |
| 93 | </html> |