Commit d36c89f8 authored by Agu Syquia's avatar Agu Syquia

Created announcements-details.html

Template to be used by AnnouncementsDetailsView CBV
parent 93386683
{% extends 'base.html'%}
{% block title %}
{{ object.title }}
{% endblock %}
{% block content %}
<h2>{{ object.title }}</h2>
by {{ object.author.first_name }} {{ object.author.last_name}}<br>
{{ object.pub_datetime|date:"m/d/Y" }} {{ object.pub_datetime|time:"H:i A" }}<br><br>
{{ object.body }}<br><br>
Like:<br>
Love:<br>
Angry:<br><br>
<button type="button" onclick="window.location.href='/announcements/{{announcement.pk}}/edit'">Edit Announcement</button>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment