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

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

<%block name="headline">
</%block>

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

<%block name="main_content">
    <div class="morelink_header">
        <h2 class="page_title">${_("Norms")}</h2>

        %if can.norm.create():
            <a class="more_link"
               href="${h.base_url('/page/new')}">${_("Create new norm")}</a>
        %endif
    </div>

    <hr/>

    <div id="pages_table" class="table">
        ${c.pages_pager.here()}
    </div>

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

<%components:tutorial>
<ol id="joyRideTipContent">
    <li data-id="pages_table"
        data-tip-location="top left" class="custom">
        ${_('tutorial_norms_overview_table')}
    </li>
    <li data-id="tag-cloud" data-next="${_('Close')}"
        data-tip-location="top" class="custom">
        <p>${_('tutorial_norms_overview_facets')}</p>
    </li>
</ol>
</%components:tutorial>

</%block>
