-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e053b8
commit a168506
Showing
3 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% load i18n peachjam %} | ||
{% for article in articles %} | ||
<div class="rounded-0 p-2 mb-3"> | ||
<div class="my-1"> | ||
<div> | ||
{% if article.image %} | ||
<a href="{{ article.get_absolute_url }}"> | ||
<img src="{{ article.image.url }}" | ||
alt="{{ article.title }}" | ||
class="img-fluid"/> | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div> | ||
<h5> | ||
<a href="{{ article.get_absolute_url }}">{{ article.title }}</a> | ||
</h5> | ||
<ul class="text-muted list-inline text-muted"> | ||
<li class="list-inline-item">{{ article.date }}</li> | ||
<li class="list-inline-item"> | ||
<a href={% url 'user_profile' article.author.username %}>{% user_name article.author %}</a> | ||
</li> | ||
{% for topic in article.topics.all %} | ||
<li class="list-inline-item"> | ||
<a href="{% url 'article_topic_list' topic.slug %}">{{ topic }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% if article.summary %}<p>{{ article.summary }}</p>{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters