Skip to content

Commit 2646202

Browse files
authored
Add files via upload
1 parent 1458037 commit 2646202

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

category.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends "layout.html" %}
2+
3+
{% block content %}
4+
{% for post in posts %}
5+
{% if post.author != current_user %}
6+
<article class="media content-section">
7+
<img class="rounded-circle article-img" src="{{ url_for('static', filename='profile_pics/' + post.author.image_file) }}">
8+
<div class="media-body">
9+
<div class="article-metadata">
10+
<a class="mr-2" href="{{ url_for('user_posts', username=post.author.username) }}">{{ post.author.username }}</a>
11+
<small class="text-muted">{{ post.date_posted.strftime('%Y-%m-%d') }}</small>
12+
</div>
13+
<h2>
14+
<a class="article-title" href="{{url_for('category',category_type=post.category,poster_id=post.author.id,post_id=post.id)}}">{{ post.title }}</a>
15+
</h2>
16+
</div>
17+
</article>
18+
19+
{% endif %}
20+
{% endfor %}
21+
{% endblock %}

0 commit comments

Comments
 (0)