<commit_before><% title "#{template.title}" %>
<% modifiable = template.latest? && !template.customization_of.present? && template.id.present? && (template.org_id = current_user.org.id) %>
<div class="row">
  <div class="col-md-12">
    <h1><%= template.title %></h1>
    <% referrer = template.customization_of.present? ? customisable_org_admin_templates_path : organisational_org_admin_templates_path %>
    <%= link_to _('View all templates'), referrer, class: 'btn btn-default pull-right' %>
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <!-- render navigation tabs for the template-->
    <%= render partial: "/org_admin/templates/navigation", locals: local_assigns.merge({ modifiable: modifiable }) %>
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane active">
        <div class="panel panel-default">
          <div class="panel-body">
            <% # locals: { phase, template, edit, current_section } %>
            <div class="pull-left">
              <h2><%= _('Phase details')%></h2>
            </div>
            <div class="pull-right">
              <%= link_to(_('Preview'), preview_org_admin_template_phase_path(template, phase), { class: 'btn btn-default phase_preview_link', role: 'button' }) %>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12">
                <%= render partial: partial_path, locals: local_assigns.merge({ modifiable: modifiable }) %>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <h2><%= _('Sections') %></h2>

                <div class="row">

                  <div class="col-sm-6">
                    <% if phase.sections.many? %>
                      <div id="sections-accordion-controls">
                        <div class="accordion-controls"
                             data-parent="sections_accordion">
                          <a href="#" data-toggle-direction="show">
                            <%= _('expand all') %>
                          </a>
                          <span>|</span>
                          <a href="#" data-toggle-direction="hide">
                            <%= _('collapse all') %>
                          </a>
                        </div>
                      </div>
                    <% end %>
                  </div>

                  <div class="col-sm-6">
                    <div class='text-right text-muted'>
                      <i class="fa fa-info-circle small"></i>
                        <%= _("Drag arrows to rearrange customized sections. You may place
                           them before or after the main template sections.") %>

                    </div>
                    <div class="clear">
                  </div>

              </div>
            </div>
            <%= render partial: 'org_admin/sections/index',
                       locals: local_assigns.merge(modifiable: modifiable) %>
          </div>
        </div>
      </div>
    </div>
  </div>
</div><commit_msg>Change tooltip on container page if all modifiable<commit_after><% title "#{template.title}" %>
<% modifiable = template.latest? && !template.customization_of.present? && template.id.present? && (template.org_id = current_user.org.id) %>
<div class="row">
  <div class="col-md-12">
    <h1><%= template.title %></h1>
    <% referrer = template.customization_of.present? ? customisable_org_admin_templates_path : organisational_org_admin_templates_path %>
    <%= link_to _('View all templates'), referrer, class: 'btn btn-default pull-right' %>
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <!-- render navigation tabs for the template-->
    <%= render partial: "/org_admin/templates/navigation", locals: local_assigns.merge({ modifiable: modifiable }) %>
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane active">
        <div class="panel panel-default">
          <div class="panel-body">
            <% # locals: { phase, template, edit, current_section } %>
            <div class="pull-left">
              <h2><%= _('Phase details')%></h2>
            </div>
            <div class="pull-right">
              <%= link_to(_('Preview'), preview_org_admin_template_phase_path(template, phase), { class: 'btn btn-default phase_preview_link', role: 'button' }) %>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12">
                <%= render partial: partial_path, locals: local_assigns.merge({ modifiable: modifiable }) %>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <h2><%= _('Sections') %></h2>

                <div class="row">

                  <div class="col-sm-6">
                    <% if phase.sections.many? %>
                      <div id="sections-accordion-controls">
                        <div class="accordion-controls"
                             data-parent="sections_accordion">
                          <a href="#" data-toggle-direction="show">
                            <%= _('expand all') %>
                          </a>
                          <span>|</span>
                          <a href="#" data-toggle-direction="hide">
                            <%= _('collapse all') %>
                          </a>
                        </div>
                      </div>
                    <% end %>
                  </div>

                  <div class="col-sm-6">
                    <div class='text-right text-muted'>
                      <i class="fa fa-info-circle small"></i>
                        <%= _("Drag arrows to rearrange customized sections.") %>
                        <% unless phase.sections.all?(&:modifiable?) %>
                          <%= _("You may place them before or after the main template sections.") %>
                        <% end %>
                    </div>
                    <div class="clear">
                  </div>

              </div>
            </div>
            <%= render partial: 'org_admin/sections/index',
                       locals: local_assigns.merge(modifiable: modifiable) %>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.15521308381821042, 'fraction_numerical': 0.005032237773234785, 'mean_word_length': 1.5108566916699566, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 154, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '815680', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1684, 'n_words': 361}