annotate MoinMoin/templates/blog/layout.html @ 2691:43987f1b008e

Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Wed, 06 Aug 2014 05:32:51 +0530
parents a22b4979caa2
children 31628ac3ec21
rev   line source
2658
a22b4979caa2 Fixed #421 and also added modify and other important links in blog view in basic theme
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 1723
diff changeset
1 {% extends theme("show.html") %}
1723
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
2 {% import theme("blog/utils.html") as blog_utils %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
3 {% import "utils.html" as utils %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
4 {% import "itemviews.html" as itemviews with context %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
5
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
6 {% if blog_item %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
7 {% set blog_header = blog_item.content._render_data()|safe %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
8 {% set blog_name = blog_item.name %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
9 {% set supertags = blog_item.meta['supertags'] %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
10 {% endif %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
11
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
12 {% if blog_name %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
13 {% macro header_search(form) %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
14 {{ blog_utils.header_search(blog_name, form) }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
15 {% endmacro %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
16 {% endif %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
17
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
18 {% block theme_stylesheets %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
19 {{ super() }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
20 <link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}" />
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
21 {% endblock %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
22
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
23 {% block header_itemviews %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
24 {{ itemviews }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
25 {% endblock %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
26
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
27 {% block content %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
28 {% block content_data %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
29 <div id="moin-content-data">
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
30 <div id="moin-blog-header">
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
31 {% if blog_header %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
32 {{ blog_header }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
33 {% endif %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
34 </div>
2691
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2658
diff changeset
35
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2658
diff changeset
36 <a id="moin-blog-entry-create-link" href="{{ url_for('frontend.new', itemtype='blogentry') }}" >
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2658
diff changeset
37 <button class="btn btn-primary">{{ _("Create Blog entry") }}</button>
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2658
diff changeset
38 </a>
43987f1b008e Added ticket-create button and blog-entry-create button in +tickets view and blog view respectively in all themes with a TODO of creating items without any initial fqname/name
Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
parents: 2658
diff changeset
39
1723
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
40 <div id="moin-blog-body">
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
41 <div id="moin-blog-content">
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
42 {% block blog_content %}<br />{% endblock %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
43 </div>
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
44 {% if blog_name and supertags %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
45 <div id="moin-blog-sidebar">
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
46 {{ blog_utils.widget_supertags(blog_name, supertags) }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
47 </div>
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
48 {% endif %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
49 </div>
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
50 </div>
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
51 {% endblock %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
52 {% endblock %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
53
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
54 {% block footer_itemviews %}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
55 {{ itemviews }}
805f03d03259 Move blog templates to a separate 'blog' directory. Split 'blog_layout' into two parts, 'layout' and 'utils'.
Pavel Sviderski <pavel@psviderski.name>
parents:
diff changeset
56 {% endblock %}