<%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%def name="title()">${c.tag.name}</%def>

<%def name="breadcrumbs()">
    ${h.tag.breadcrumbs(c.tag)|n}
</%def>


<%block name="headline">
<div class="top_actions title">
    %if can.proposal.create():
        <a class="button add ttip" title="${_('Introduce a new idea to debate.')}" href="/proposal/new">${_("new proposal")}</a>
    %endif

    %if can.norm.create():
        <a class="button title admin ttip" title="${_('Create a new norm.')}"
            href="/page/new">${_("new norm")}</a>
    %endif

    ${components.watch(c.tag)}
</div>

<div style="clear: both;"></div>
<h1>${c.tag.name}</h1>
</%block>


<%block name="sidebar">
    %if len(c.cloud_tags):
        <div class="sidebar_box">
            <h3 class="section">${_("Similar tags")}</h3>
            ${tiles.tag.cloud(c.cloud_tags)}
        </div>
    %endif
</%block>


<%block name="main_content">
    <div id="entities_table" class="table">
        ${c.entities_pager.here()}
    </div>
    <br/>
    <div class="top_actions aside">
        %if can.proposal.create():
            <a class="button add ttip" title="${_('Introduce a new idea to debate.')}" href="/proposal/new">${_("new proposal")}</a>
        %endif

        %if can.norm.create():
            <a class="button title admin ttip" title="${_('Create a new norm.')}"
                href="/page/new">${_("new norm")}</a>
        %endif
    </div>
</%block>
