index.html 781 Bytes
Newer Older
1
2
3
4
5
6
7
8
{% extends 'layout.html' %}

{% block title %} Home {% endblock %}

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset-3">
9
		<h2> Welcome, {{session['name']}}! </h2>
10
		{% if session['name'] %}
Vladislav Rykov's avatar
Vladislav Rykov committed
11
		<br>
12
		<h4> Explore your applications or create a new one. </h4>
Vladislav Rykov's avatar
Vladislav Rykov committed
13
14
15
		{% if apps %}
		<br>
		<ol class="list-group">
16
			{% for app in apps %}
Vladislav Rykov's avatar
Vladislav Rykov committed
17
			<a href="/app?appkey={{ app[1] }}"><li class="list-group-item"><strong> {{ app[0] }} </strong></li></a>
18
			{% endfor %}
19
		</ol>
Vladislav Rykov's avatar
Vladislav Rykov committed
20
21
		{% endif %}
		<br>
22
		<a href="/new-app"><button class="btn btn-primary" type="submit">New Application</button></a>
23
24
25
		{% else %}
		<p>Log in, please</p>
		{% endif %}
26
27
28
		{% if feedback %}
		<p class="text-danger float-right"> {{ feedback }} </p>	
		{% endif %}
29
30
31
32
	</div>
</div>

{% endblock %}