Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added detail template. Also put in a quick hack to singularize the pl…
…ural app names for the model names.
- Loading branch information
1 parent
c9e7506
commit 7b43f05
Showing
2 changed files
with
27 additions
and
7 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,14 @@ | ||
{% templatetag openblock %} extends "base_generic.html" {% templatetag closeblock %} | ||
|
||
{% templatetag openblock %} block title {% templatetag closeblock %} | ||
{% templatetag openvariable %} {{ model_name.lower }}.name {% templatetag closevariable %} : {{ model_name }} | ||
{% templatetag openblock %} endblock {% templatetag closeblock %} | ||
|
||
{% templatetag openblock %} block content {% templatetag closeblock %} | ||
<h1>{% templatetag openvariable %} {{ model_name.lower }}.name {% templatetag closevariable %}</h1> | ||
|
||
<h3>Date Published</h3> | ||
<p> {% templatetag openvariable %} {{ model_name.lower }}.pub_date {% templatetag closevariable %}</p> | ||
|
||
{% templatetag openblock %} endblock {% templatetag closeblock %} | ||
|