Skip to content

Instantly share code, notes, and snippets.


vitorfs/topics.html Secret

Created Sep 30, 2017
What would you like to do?
{% extends 'base.html' %}
{% block title %}
{{ }} - {{ block.super }}
{% endblock %}
{% block breadcrumb %}
<li class="breadcrumb-item"><a href="{% url 'home' %}">Boards</a></li>
<li class="breadcrumb-item active">{{ }}</li>
{% endblock %}
{% block content %}
<div class="mb-4">
<a href="{% url 'new_topic' %}" class="btn btn-primary">New topic</a>
<table class="table">
<thead class="thead-inverse">
<th>Last Update</th>
{% for topic in board.topics.all %}
<td><a href="{% url 'topic_posts' %}">{{ topic.subject }}</a></td>
<td>{{ topic.starter.username }}</td>
<td>{{ topic.last_updated }}</td>
{% endfor %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment