open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/template/Node/redirectionListView._tpl.html

Summary

Maintainability
Test Coverage
<fieldset>
    <legend class="underline-label">
        <%- Translator.trans('open_orchestra_backoffice.node.redirections') %>
    </legend>
    <ul class="list-group">
        <% _.each(redirections, function(redirection, key) { %>
        <li class="list-group-item">
            <% if (true === redirection.get('rights').can_edit) { %>
                <a href="#redirection/edit/<%- redirection.get('id') %>"><%- redirection.get('route_pattern') %></a>
            <% } else { %>
                <%- redirection.get('route_pattern') %>
            <% }; %>
        </li>
        <% }); %>
    </ul>
</fieldset>