denny/ShinyCMS

View on GitHub
root/admin/menus/polls.tt

Summary

Maintainability
Test Coverage
            [% IF c.user.has_role( 'Poll Admin' ) -%]
            <li id="Polls" class="nav-title">Polls</li>

            <li class="nav-item">
              <a class="nav-link" href="[% c.uri_for( '/admin/polls' ) %]" title="List all polls">
                <i class="nav-icon fa fa-list"></i> List polls</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="[% c.uri_for( '/admin/polls/add' ) %]" title="Add new poll">
                <i class="nav-icon fa fa-plus"></i> Add poll</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="[% c.uri_for( '/polls' ) %]" title="View polls">
                <i class="nav-icon fa fa-bar-chart"></i> View polls</a>
            </li>
            [%- END %]