|
|
|
@ -20,7 +20,6 @@
|
|
|
|
|
<body>
|
|
|
|
|
<div class="leaderboard">
|
|
|
|
|
<h1 style="text-align: center">Leaderboard</h1>
|
|
|
|
|
<div class="leaderboard-contiainer">
|
|
|
|
|
{% for person in leaderboard %}
|
|
|
|
|
<div class="lb-entry">
|
|
|
|
|
<img src="{{url_for('static', filename=person.name + '.png')}}">
|
|
|
|
@ -29,45 +28,38 @@
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-pane">
|
|
|
|
|
<h1 style="padding-left: 40pt">Next Meal</h1>
|
|
|
|
|
<h1>When: {{date}}</h1>
|
|
|
|
|
<h2>Cook</h2>
|
|
|
|
|
<div class="cook-entry">
|
|
|
|
|
<div class="cook-card">
|
|
|
|
|
<span>date: {{ date }}</span>
|
|
|
|
|
<div class="flex-card">
|
|
|
|
|
{% if cook.confirmed == "no" %}
|
|
|
|
|
<img src="{{url_for('static', filename='question.png')}}">
|
|
|
|
|
<p>If nobody volunteers,<br><br><img id="cook-small-thumb" src="{{url_for('static', filename=cook.name + '.png')}}"> will cook.</p>
|
|
|
|
|
<div class="rect-button" onclick="location.href='/volunteer';"><span>VOLUNTEER</span></div>
|
|
|
|
|
<p>If nobody volunteers,<br><img class="flex-small-thumb" src="{{url_for('static', filename=cook.name + '.png')}}" title="{{current_user.name}}" align="middle"> will cook.</p>
|
|
|
|
|
<div class="rect-button" onclick="location.href='/volunteer';" style="background-color: #EE7500;">VOLUNTEER</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<img src="{{url_for('static', filename= cook.name + '.png')}}">
|
|
|
|
|
<span>{{ cook.name }}</span>
|
|
|
|
|
<div class="rect-button" style="background-color: #8faf38; cursor: default;"><span>CONFIRMED</span></div>
|
|
|
|
|
<div class="rect-button" style="background-color: #8faf38; cursor: default;">CONFIRMED</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<h2>Eaters</h2>
|
|
|
|
|
{% for eater in eaters %}
|
|
|
|
|
<div class="eater-entry">
|
|
|
|
|
<div class="eater-card">
|
|
|
|
|
<div class="flex-card">
|
|
|
|
|
<img src="{{url_for('static', filename=eater + '.png')}}">
|
|
|
|
|
<span>{{ eater }}</span>
|
|
|
|
|
</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% if not current_user.name in eaters %}
|
|
|
|
|
<div class="eater-entry" style="height: 60pt;">
|
|
|
|
|
<div class="add-button" onclick="location.href='/addme';"><span><i class="fa fa-plus" aria-hidden="true"></i></span></div>
|
|
|
|
|
<div class="flex-card" style="background: none; box-shadow: none">
|
|
|
|
|
<div class="round-button" onclick="location.href='/addme';"><i class="fa fa-plus" aria-hidden="true"></i></div>
|
|
|
|
|
<span>Add me</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="eater-entry" style="height: 60pt;">
|
|
|
|
|
<div class="add-button" onclick="location.href='/removeme';"><span><i class="fa fa-minus" aria-hidden="true"></i></span></div>
|
|
|
|
|
<div class="flex-card" style="background: none; box-shadow: none">
|
|
|
|
|
<div class="round-button" onclick="location.href='/removeme';"><i class="fa fa-minus" aria-hidden="true"></i></div>
|
|
|
|
|
<span>Remove me</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user-card">
|
|
|
|
|
<img src="{{url_for('static', filename=current_user.name + '.png')}}">
|
|
|
|
|
<div class="user-info">
|
|
|
|
@ -75,5 +67,6 @@
|
|
|
|
|
<div class="rect-button" onclick="location.href='/logout';" style="background-color: #EE7500;">LOGOUT</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|