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 %} |
Fatih Degirmenci | 64fea9e | 2019-09-30 18:44:31 +0000 | [diff] [blame] | 8 | <nav class="navbar navbar-default navbar-fixed-top"> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 9 | <div class="container"> |
Fatih Degirmenci | ab2fb83 | 2019-10-01 09:06:40 +0000 | [diff] [blame] | 10 | |
| 11 | <div class="navbar-header"> |
| 12 | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
| 13 | <span class="icon-bar"></span> |
| 14 | <span class="icon-bar"></span> |
| 15 | <span class="icon-bar"></span> |
| 16 | </button> |
| 17 | </div> |
| 18 | |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 19 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
| 20 | <ul class="nav navbar-nav navbar-left"> |
| 21 | <li><a href="{{ url_for('main.index') }}">Home</a></li> |
Fatih Degirmenci | d2d4c4d | 2019-10-02 12:20:17 +0000 | [diff] [blame] | 22 | <li><a href="{{ url_for('main.gettingstarted') }}">Getting Started</a></li> |
Fatih Degirmenci | e465180 | 2019-10-01 07:58:33 +0000 | [diff] [blame] | 23 | <li><a href="{{ url_for('main.blog') }}">Blog</a></li> |
Fatih Degirmenci | f373235 | 2019-10-01 08:18:37 +0000 | [diff] [blame] | 24 | <li><a href="{{ url_for('main.thelabs') }}">The Labs</a></li> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 25 | <li><a href="{{ url_for('main.software') }}">Software</a></li> |
Fatih Degirmenci | 8896393 | 2019-09-30 14:08:18 +0000 | [diff] [blame] | 26 | <!-- <li><a href="{{ url_for('main.stats') }}">Statistics</a></li> --> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 27 | <li><a href="{{ url_for('main.faq') }}">FAQ</a></li> |
| 28 | </ul> |
| 29 | <ul class="nav navbar-nav navbar-right"> |
| 30 | {% if current_user.is_anonymous %} |
| 31 | <li><a href="{{ url_for('user.register') }}">Register</a></li> |
| 32 | <li><a href="{{ url_for('user.login') }}">Login</a></li> |
| 33 | {% else %} |
| 34 | <li><a href="{{ url_for('user.profile', username=current_user.username) }}">Profile</a></li> |
| 35 | <li><a href="{{ url_for('booking.newbooking', username=current_user.username) }}">New Booking</a></li> |
| 36 | <li><a href="{{ url_for('booking.bookings', username=current_user.username) }}">My Bookings</a></li> |
| 37 | <li><a href="{{ url_for('user.logout') }}">Logout</a></li> |
| 38 | {% endif %} |
| 39 | </ul> |
| 40 | </div> |
| 41 | </div> |
| 42 | |
| 43 | <div class="navbar navbar-default navbar-fixed-bottom"> |
| 44 | <div class="container"> |
| 45 | <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> |
| 46 | </div> |
| 47 | </div> |
| 48 | </nav> |
| 49 | {% endblock %} |
| 50 | |
| 51 | {% block content %} |
Fatih Degirmenci | 64fea9e | 2019-09-30 18:44:31 +0000 | [diff] [blame] | 52 | <div class="jumbotron" style="background:white"> |
| 53 | </div> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 54 | <div class="container"> |
| 55 | <div class="jumbotron"> |
| 56 | <center> |
| 57 | <a href="https://www.nordix.org/" target="_blank"> |
| 58 | <img src="/static/images/nordix-logo.png" alt="https://www.nordix.org/" style="width:100px;height:100px;" /> |
| 59 | </a> |
| 60 | <h2><b><font color="black">[nolabs]</font></b></h2> |
| 61 | </center> |
| 62 | </div> |
| 63 | |
Fatih Degirmenci | 64fea9e | 2019-09-30 18:44:31 +0000 | [diff] [blame] | 64 | {% with messages = get_flashed_messages(with_categories=true) %} |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 65 | {% if messages %} |
Fatih Degirmenci | 64fea9e | 2019-09-30 18:44:31 +0000 | [diff] [blame] | 66 | {% for category, message in messages %} |
| 67 | <div class="alert alert-{{ category }}" role="alert">{{ message }}</div> |
Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 68 | {% endfor %} |
| 69 | {% endif %} |
| 70 | {% endwith %} |
| 71 | {# application content needs to be provided in the app_content block #} |
| 72 | {% block app_content %}{% endblock %} |
| 73 | </div> |
| 74 | {%- endblock %} |