denny/ShinyCMS

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

Summary

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

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