git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ingredients auto complete, adding ingredients works. Some template tweaks.
[~kgodey/maayanwich.git]
/
templates
/
onesandwich.html
diff --git
a/templates/onesandwich.html
b/templates/onesandwich.html
index
2799cf3
..
d685ea3
100644
(file)
--- a/
templates/onesandwich.html
+++ b/
templates/onesandwich.html
@@
-4,7
+4,7
@@
{% block content %}
<h3 class="sandwichtitle">{{ s.adjective }}</h3>
{% block content %}
<h3 class="sandwichtitle">{{ s.adjective }}</h3>
- <p class="metadata">Made on {{ s.date_made
}} and added by {{ s.user.username }}.
</p>
+ <p class="metadata">Made on {{ s.date_made
|date:"F j Y" }} and added by {% if s.user.first_name %} {{ s.user.first_name }} {% if s.user.last_name %} {{ s.user.last_name }} {% endif %} {% else %} {{ s.user.username }}. {% endif %}
</p>
{% if s.picture %}
<img class="sandwichimg" src="{{ s.picture.url }}">
{% endif %}
{% if s.picture %}
<img class="sandwichimg" src="{{ s.picture.url }}">
{% endif %}