mod link, button fix, add makefile

This commit is contained in:
lza_menace 2021-03-07 23:41:15 -08:00
parent 7527bbfc2b
commit a384b6c8a8
4 changed files with 25 additions and 5 deletions

9
Makefile Normal file
View file

@ -0,0 +1,9 @@
setup:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
dev:
./bin/dev
prod:
./bin/prod

View file

@ -4,6 +4,11 @@
<div class="container" style="text-align:center;">
<h3>Leaderboards</h3>
<a href="{{ url_for('post.top') }}"><button class="btn btn-warning">Top Posts</button></a>
<a href="{{ url_for('leaderboard.leaderboard') }}"><button class="btn btn-warning">Top Posters</button></a>
<hr>
<div class="title">
<h3>{% block title %}Latest Posts{% endblock %}</h3>
</div>
@ -46,11 +51,6 @@
{% endif %}
{% endif %}
<hr>
<h3>Leaderboards</h3>
<a href="{{ url_for('post.top') }}"><button class="btn btn-warning">Top Posts</button></a>
<a href="{{ url_for('leaderboard.leaderboard') }}"><button class="btn btn-warning">Top Posters</button></a>
</div>
{% endblock %}

View file

@ -7,6 +7,11 @@
<div class="" id="">
<ul class="navbar-nav ml-auto">
{% if session.auth %}
<li class="nav-item">
<a class="nav-link" style="color: yellow;" href="{{ url_for('mod_queue') }}">Mods!</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('index') }}">Home</a>
</li>

View file

@ -15,6 +15,7 @@
<th>ID</th>
<th>Title</th>
<th>Submitter</th>
<th>Thumbnail</th>
<th>Amount</th>
</tr>
{% for post in posts %}
@ -23,6 +24,11 @@
<td>{{ post[1].id }}</td>
<td><a href="{{ url_for('post.read', id=post[1].id) }}">{{ post[1].title }}</a></td>
<td><a href="/?submitter={{ post[1].submitter }}">{{ post[1].submitter }}</a></td>
<td>
<a href="{{ url_for('post.read', id=post.id) }}">
<img src="{{ url_for('post.uploaded_file', filename=post.get_thumbnail_name()) }}" width=200 style="max-height:200px;">
</a>
</td>
<td>{{ post[0] }} WOW</td>
</tr>
{% endfor %}