view MoinMoin/themes/foobar/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 e1cf79737e15
children 759817e9bc28
line wrap: on
line source
{% extends theme("layout.html") %}
{% import theme("blog/utils.html") as blog_utils %}

{% if blog_item %}
    {% set blog_header = blog_item.content._render_data()|safe %}
    {% set blog_name = blog_item.name %}
    {% set supertags = blog_item.meta['supertags'] %}
{% endif %}

{% if blog_name %}
    {% macro header_search(form) %}
        {{ blog_utils.header_search(blog_name, form) }}
    {% endmacro %}
{% endif %}

{% block theme_stylesheets %}
    {{ super() }}
    <link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}" />
{% endblock %}

{% block content %}
    {% block content_data %}
        <div id="moin-content-data">
            <div id="moin-blog-header">
                {% if blog_header %}
                    {{ blog_header }}
                {% endif %}
            </div>

            <a id="moin-blog-entry-create-link" href="{{ url_for('frontend.new', itemtype='blogentry') }}" >
                <button class="btn btn-primary">{{ _("Create Blog entry") }}</button>
            </a>

            <div id="moin-blog-body">
                <div id="moin-blog-content">
                {% block blog_content %}<br />{% endblock %}
                </div>
            </div>
        </div>
    {% endblock %}
{% endblock %}

{% block local_panel  %}
    <ul>
        {% if blog_name and supertags %}
        <li>
            {{ blog_utils.widget_supertags(blog_name, supertags) }}
        </li>
        {% endif %}
        <li>
            {{ _("Views") }}
            {{ itemviews }}
        </li>
    </ul>
{% endblock %}