revert to feed, add new favicoon

This commit is contained in:
lza_menace 2021-05-06 10:46:15 -07:00
parent f98a53c6ce
commit 71b2cb4c15
14 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ def index():
submitter = request.args.get("submitter", None)
content = request.args.get("content", None)
if content != 'feed':
if content == 'latest_tipped':
posts = get_latest_tipped_posts()
return render_template(
"index.html",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

View File

@ -20,7 +20,7 @@
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/static/wownero_logo.ico" type="image/x-icon" />
{% if post %}
<meta property="og:url" content="{{ url_for('post.read', id=post.id, _external=True) }}" />
<meta property="og:image" content="{{ url_for('post.uploaded_file', filename=post.image_name, _external=True) }}" />

View File

@ -6,10 +6,10 @@
<h1 class="title">{% if title %}{{ title }}{% else %}Latest Memes{% endif %}</h1>
{% if request.args.content != 'feed' %}
<a href="/?content=feed">View Latest Memes</a>
{% if request.args.content == 'feed' %}
<a href="/">View Latest Memes</a>
{% else %}
<a href="/">View Latest Tipped Posts</a>
<a href="/?content=latest_tipped">View Latest Tipped Posts</a>
{% endif %}
<section class="section">
@ -31,7 +31,7 @@
<p class="title is-4">
<a href="{{ url_for('post.read', id=post.id) }}">{{ post.title }}</a>
</p>
<p class="subtitle is-6"><a href="/?content=feed&submitter={{ post.submitter }}">{{ post.submitter }}</a></p>
<p class="subtitle is-6"><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></p>
</div>
</div>
@ -56,7 +56,7 @@
<nav class="pagination is-centered pb-4" role="navigation" aria-label="pagination">
<ul class="pagination-list">
{% for p in range(1, total_pages + 1) %}
<a href="/?content=feed&{% if request.args.submitter %}submitter={{ request.args.submitter }}&{% endif %}page={{ p }}" class="pagination-link {% if p == page %}current-page-btn{% endif %}">{{ p }}</a>
<a href="{% if request.args.submitter %}/?submitter={{ request.args.submitter }}&{% else %}/?{% endif %}page={{ p }}" class="pagination-link {% if p == page %}current-page-btn{% endif %}">{{ p }}</a>
{% endfor %}
</ul>
</nav>

View File

@ -15,7 +15,7 @@
</tr>
{% for poster, data in posters.items() | sort(attribute='1.amount', reverse=True) %}
<tr>
<td><a href="/?content=feed&submitter={{ poster }}">{{ poster }}</a></td>
<td><a href="/?submitter={{ poster }}">{{ poster }}</a></td>
<td>{{ data["posts"] | length }}</td>
<td>{{ data["amount"] }} WOW</td>
</tr>

View File

@ -24,7 +24,7 @@
<a href="{{ url_for('post.approve', id=post.id) }}"><button type="button" name="button">Approve</button></a>
<a href="{{ url_for('post.delete', id=post.id) }}"><button type="button" name="button">Reject</button></a>
{% endif %}
<p>Submitted by <i><u><a href="/?content=feed&submitter={{ post.submitter }}">{{ post.submitter }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
<p>Submitted by <i><u><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
<img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=600/ style="border-radius:4px;">
</div>
</section>

View File

@ -24,7 +24,7 @@
<p class="title is-4">
<a href="{{ url_for('post.read', id=post.id) }}">{{ post.title }}</a>
</p>
<p class="subtitle is-6"><a href="/?content=feed&submitter={{ post.submitter }}">{{ post.submitter }}</a></p>
<p class="subtitle is-6"><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></p>
</div>
</div>