forked from tornadoweb/tornado
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix all templates to access result contents using dictionary syntax.
- Loading branch information
Dusty Phillips
committed
Jan 22, 2010
1 parent
838517c
commit 8a78662
Showing
4 changed files
with
17 additions
and
17 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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="entry"> | ||
<h1><a href="/entry/{{ entry.slug }}">{{ escape(entry.title) }}</a></h1> | ||
<div class="date">{{ locale.format_date(entry.published, full_format=True, shorter=True) }}</div> | ||
<div class="body">{{ entry.html }}</div> | ||
<h1><a href="/entry/{{ entry['slug'] }}">{{ escape(entry['title']) }}</a></h1> | ||
<div class="date">{{ locale.format_date(entry['published'], full_format=True, shorter=True) }}</div> | ||
<div class="body">{{ entry['html'] }}</div> | ||
{% if current_user %} | ||
<div class="admin"><a href="/compose?id={{ entry.id }}">{{ _("Edit this post") }}</a></div> | ||
<div class="admin"><a href="/compose?id={{ entry['id'] }}">{{ _("Edit this post") }}</a></div> | ||
{% end %} | ||
</div> |