✨
This commit is contained in:
@ -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 %}
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user