Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame^] | 1 | {% extends 'bootstrap/base.html' %} |
| 2 | |
| 3 | {% block title %} |
| 4 | {% if title %}{{ title }}{% else %}Nordix Open Labs{% endif %} |
| 5 | {% endblock %} |
| 6 | |
| 7 | {% block navbar %} |
| 8 | <nav class="navbar navbar-default static-top"> |
| 9 | <div class="container"> |
| 10 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
| 11 | <ul class="nav navbar-nav navbar-left"> |
| 12 | <li><a href="{{ url_for('main.index') }}">Home</a></li> |
| 13 | <li><a href="{{ url_for('main.sandbox') }}">Sandbox</a></li> |
| 14 | <li><a href="{{ url_for('main.software') }}">Software</a></li> |
| 15 | <li><a href="{{ url_for('main.stats') }}">Statistics</a></li> |
| 16 | <li><a href="{{ url_for('main.faq') }}">FAQ</a></li> |
| 17 | </ul> |
| 18 | <ul class="nav navbar-nav navbar-right"> |
| 19 | {% if current_user.is_anonymous %} |
| 20 | <li><a href="{{ url_for('user.register') }}">Register</a></li> |
| 21 | <li><a href="{{ url_for('user.login') }}">Login</a></li> |
| 22 | {% else %} |
| 23 | <li><a href="{{ url_for('user.profile', username=current_user.username) }}">Profile</a></li> |
| 24 | <li><a href="{{ url_for('booking.newbooking', username=current_user.username) }}">New Booking</a></li> |
| 25 | <li><a href="{{ url_for('booking.bookings', username=current_user.username) }}">My Bookings</a></li> |
| 26 | <li><a href="{{ url_for('user.logout') }}">Logout</a></li> |
| 27 | {% endif %} |
| 28 | </ul> |
| 29 | </div> |
| 30 | </div> |
| 31 | |
| 32 | <div class="navbar navbar-default navbar-fixed-bottom"> |
| 33 | <div class="container"> |
| 34 | <p class="text-ad" style="text-align:center;">Powered by <a href="https://www.openstack.org/" target="_blank">OpenStack</a>.   Hosted on <a href="https://www.citynetwork.eu/" target="_blank">City Network</a>.   In collaboration with <a href="https://www.est.tech/" target="_blank">Ericsson Software Technology</a>.</p> |
| 35 | </div> |
| 36 | </div> |
| 37 | </nav> |
| 38 | {% endblock %} |
| 39 | |
| 40 | {% block content %} |
| 41 | <div class="container"> |
| 42 | <div class="jumbotron"> |
| 43 | <center> |
| 44 | <a href="https://www.nordix.org/" target="_blank"> |
| 45 | <img src="/static/images/nordix-logo.png" alt="https://www.nordix.org/" style="width:100px;height:100px;" /> |
| 46 | </a> |
| 47 | <h2><b><font color="black">[nolabs]</font></b></h2> |
| 48 | </center> |
| 49 | </div> |
| 50 | |
| 51 | {% with messages = get_flashed_messages() %} |
| 52 | {% if messages %} |
| 53 | {% for message in messages %} |
| 54 | <div class="alert alert-info" role="alert">{{ message }}</div> |
| 55 | {% endfor %} |
| 56 | {% endif %} |
| 57 | {% endwith %} |
| 58 | {# application content needs to be provided in the app_content block #} |
| 59 | {% block app_content %}{% endblock %} |
| 60 | </div> |
| 61 | {%- endblock %} |