/topics.html Secret
Created
October 8, 2017 18:13
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
{% extends 'base.html' %} | |
{% load humanize %} | |
{% block title %} | |
{{ board.name }} - {{ block.super }} | |
{% endblock %} | |
{% block breadcrumb %} | |
<li class="breadcrumb-item"><a href="{% url 'home' %}">Boards</a></li> | |
<li class="breadcrumb-item active">{{ board.name }}</li> | |
{% endblock %} | |
{% block content %} | |
<div class="mb-4"> | |
<a href="{% url 'new_topic' board.pk %}" class="btn btn-primary">New topic</a> | |
</div> | |
<table class="table mb-4"> | |
<thead class="thead-inverse"> | |
<tr> | |
<th>Topic</th> | |
<th>Starter</th> | |
<th>Replies</th> | |
<th>Views</th> | |
<th>Last Update</th> | |
</tr> | |
</thead> | |
<tbody> | |
{% for topic in topics %} | |
<tr> | |
<td><a href="{% url 'topic_posts' board.pk topic.pk %}">{{ topic.subject }}</a></td> | |
<td>{{ topic.starter.username }}</td> | |
<td>{{ topic.replies }}</td> | |
<td>{{ topic.views }}</td> | |
<td>{{ topic.last_updated|naturaltime }}</td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
{% include 'includes/pagination.html' %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment