Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Side by Side Diff: MoinMoin/templates/blog_layout.html

Issue 6463045: Let Blog and BlogEntry classes handle +show view. (Closed)
Patch Set: Some fixes Created 12 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « MoinMoin/templates/blog.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% import "forms.html" as forms %} 2 {% import "forms.html" as forms %}
3 {% import "utils.html" as utils %} 3 {% import "utils.html" as utils %}
4 4
5 {% macro show_blog_entry(entry_item) %} 5 {% macro show_blog_entry(entry_item) %}
6 {% if entry_item.meta['summary'] %} 6 {% if entry_item.meta['summary'] %}
7 {% set title = entry_item.meta['summary'] %} 7 {% set title = entry_item.meta['summary'] %}
8 {% else %} 8 {% else %}
9 {% set title = entry_item.name %} 9 {% set title = entry_item.name %}
10 {% endif %} 10 {% endif %}
(...skipping 28 matching lines...) Expand all
39 <a href="{{ url_for('frontend.show_item', item_name=discussion_item_ name) }}">{{ _("Discussion page") }}</a> 39 <a href="{{ url_for('frontend.show_item', item_name=discussion_item_ name) }}">{{ _("Discussion page") }}</a>
40 </div> 40 </div>
41 </div> 41 </div>
42 {% endmacro %} 42 {% endmacro %}
43 43
44 {% macro widget_supertags(blog_name, supertags) %} 44 {% macro widget_supertags(blog_name, supertags) %}
45 <div id="moin-blog-categories"> 45 <div id="moin-blog-categories">
46 <h2>{{ _("Categories") }}</h2> 46 <h2>{{ _("Categories") }}</h2>
47 <ul> 47 <ul>
48 {% for supertag in supertags %} 48 {% for supertag in supertags %}
49 <li><a href="{{ url_for('frontend.show_blog', item_name=blog_nam e, supertag=supertag) }}">{{ supertag }}</a></li> 49 <li><a href="{{ url_for('frontend.show_item', item_name=blog_nam e, tag=supertag) }}">{{ supertag }}</a></li>
50 {% endfor %} 50 {% endfor %}
51 </ul> 51 </ul>
52 </div> 52 </div>
53 {% endmacro %} 53 {% endmacro %}
54 54
55 {% if blog_item %} 55 {% if blog_item %}
56 {% set blog_header = blog_item.content._render_data()|safe %} 56 {% set blog_header = blog_item.content._render_data()|safe %}
57 {% set blog_name = blog_item.name %} 57 {% set blog_name = blog_item.name %}
58 {% set supertags = blog_item.meta['supertags'] %} 58 {% set supertags = blog_item.meta['supertags'] %}
59 {% endif %} 59 {% endif %}
(...skipping 26 matching lines...) Expand all
86 {% block blog_content %}<br />{% endblock %} 86 {% block blog_content %}<br />{% endblock %}
87 </div> 87 </div>
88 {% if blog_name and supertags %} 88 {% if blog_name and supertags %}
89 <div id="moin-blog-sidebar"> 89 <div id="moin-blog-sidebar">
90 {{ widget_supertags(blog_name, supertags) }} 90 {{ widget_supertags(blog_name, supertags) }}
91 </div> 91 </div>
92 {% endif %} 92 {% endif %}
93 </div> 93 </div>
94 {% endblock %} 94 {% endblock %}
95 {% endblock %} 95 {% endblock %}
OLDNEW
« no previous file with comments | « MoinMoin/templates/blog.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b