Browse Source

mod link, button fix, add makefile

graphs-n-shit
lza_menace 1 year ago
parent
commit
a384b6c8a8
  1. 9
      Makefile
  2. 10
      suchwow/templates/index.html
  3. 5
      suchwow/templates/navbar.html
  4. 6
      suchwow/templates/post/top.html

9
Makefile

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

10
suchwow/templates/index.html

@ -4,6 +4,11 @@ @@ -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 @@ @@ -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 %}

5
suchwow/templates/navbar.html

@ -7,6 +7,11 @@ @@ -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>

6
suchwow/templates/post/top.html

@ -15,6 +15,7 @@ @@ -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 @@ @@ -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 %}

Loading…
Cancel
Save