This commit is contained in:
NikolajDanger
2022-05-31 10:17:42 +02:00
parent 06b40f5158
commit 5fec84b6b7
5 changed files with 39 additions and 26 deletions

View File

@ -1,6 +1,16 @@
{% extends "layout.html" %}
{% block content %}
<h1>{{ group.name }}</h1>
<p>TODO: Tilføj opslag og tråde som er tilknyttet denne gruppe</p>
{% for post in posts %}
<article class="media content-section">
<div class="media-body">
<div class="article-metadata">
<a class="mr-2" href="#">{{ post.author.first_name }} {{ post.author.last_name }}</a>
<small class="text-muted">{{ post.date_posted }}</small>
</div>
<h2><a class="article-title" href="#">{{ post.title }}</a></h2>
<p class="article-content">{{ post.content }}</p>
</div>
</article>
{% endfor %}
{% endblock content %}

View File

@ -8,13 +8,13 @@
<article class="media content-section">
<div class="media-body">
<div class="article-metadata">
<a class="mr-2" href="#">{{ post.author_name }}</a>
<a class="mr-2" href="#">{{ post.author.first_name }} {{ post.author.last_name }}</a>
<small class="text-muted">{{ post.date_posted }}</small>
</div>
<h2><a class="article-title" href="#">{{ post.title }}</a></h2>
<p class="article-content">{{ post.content }}</p>
<a class="group-name" href="#">
{{ post.group_name }}
<a class="group-name" href="{{ url_for('Group.show', group_id = post.group.group_id) }}"">
{{ post.group.name }}
</a>
</div>
</article>