Skip to content
Snippets Groups Projects
Select Git revision
  • 25be9ded9b305c6000d3a59c9ef79ea9800e4477
  • master default protected
2 results

init.sh

Blame
  • base.html 1.56 KiB
    <!DOCTYPE html>
    <html>
    <head>
    	<title>Odevzdávací systém MO</title>
    	<link rel=stylesheet href="{{ url_for('static', filename='bootstrap.min.css') }}" type='text/css' media=all>
    	<link rel=stylesheet href="{{ url_for('static', filename='mo.css') }}?v=4" type='text/css' media=all>
    {% block head %}{% endblock %}
    </head>
    <body>
    <header>
    	<div class="content">
    		<a href="http://www.matematickaolympiada.cz/" title="Na stránky MO">
    			<img src="{{ url_for('static', filename='img/mo.jpg') }}" alt="Matematická olympiáda">
    		</a>
    		<h1><b>O</b>devzdávací <b>S</b>ystém <b>M</b>atematické <b>O</b>lympiády</h1>
    	</div>
    </header>
    <div id="nav-wrapper">
    	<nav id="main-menu" class="content">
    		{% for item in get_menu() %}
    			<a {% if item.classes %}class="{{ " ".join(item.classes) }}"{% endif %} href="{{ item.url }}">{{ item.name }}</a>
    		{% endfor %}
    		{% if g.user %}
    			<form method=POST action='{{ url_for('logout') }}'><input type=submit value='Logout'></form>
    		{% endif %}
    	</nav>
    </div>
    <main>
    {% with messages = get_flashed_messages(with_categories=true) %}
    {% if messages %}
    	{% for category, message in messages %}
    		{% if category == 'message' %}
    		<div class="alert alert-warning" role="alert">
    		{% else %}
    		<div class="alert alert-{{ category }}" role="alert">
    		{% endif %}
    		{{ message }}
    		</div>
    	{% endfor %}
    {% endif %}
    {% endwith %}
    {% block body %}{% endblock %}
    </main>
    <footer>
    	<hr>
    	<div class="content">
    		<p>V případě problémů napište správci na adresu <a href='mailto:osmo@mo.mff.cuni.cz'>osmo@mo.mff.cuni.cz</a>.
    	</div>
    </footer>
    </body>
    </html>