open-orchestra/open-orchestra-cms-bundle

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

Summary

Maintainability
Test Coverage
<% if (true === node.get('status').get('published_state')) {%>
    <div class="alert alert-success alert-published-state" role="alert">
        <div class="heading"><%- Translator.trans('open_orchestra_backoffice.node.message_online.title') %></div>
        <p>
            <%= (Translator.trans('open_orchestra_backoffice.node.message_online.message').replace(/\\n/g, '<br>')) %>
        </p>
    </div>
<% }; %>
<% if (false === node.get('rights').can_publish_node) {%>
<div class="alert alert-warning" role="warning">
    <div class="heading"><%- Translator.transChoice('open_orchestra_backoffice.node.route_pattern_arguments.title', requiredUriParameters.length) %></div>
    <p>
        <%= (Translator.transChoice('open_orchestra_backoffice.node.route_pattern_arguments.message', requiredUriParameters.length).replace(/\\n/g, '<br>').replace('%s', '{' + requiredUriParameters.join('}, {') + '}')) %>
    </p>
</div>
<% }; %>