<commit_before><% provide(:extra_admin_head) do %>
  <%= stylesheet_link_tag('admin', media: 'all') %>
  <%= javascript_include_tag('admin-core', media: 'all') %>
  <%= javascript_include_tag('admin', media: 'all') %>
<% end %>

<div class="navbar navbar-dark bg-dark navbar-static-top navbar-expand-md mb-4" role="navigation">
  <div class="container-lg">
    <%= link_to(admin_dashboard_path, :class => "navbar-brand mr-auto") do %>
      <%= fa_icon(:cogs, :text => "CATIMA admin") %>
    <% end %>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="navbar-collapse collapse  justify-content-end">
      <ul class="nav navbar-nav">
        <li class="nav-item">
          <%= link_to(root_path, class: "nav-link") do %>
            Homepage
          <% end %>
        </li>
        <li class="nav-item">
          <%= link_to("/sidekiq", class: "nav-link") do %>
            Sidekiq
        <% end %>
        </li>
        <%= render("shared/navbar/user_menu") %>
      </ul>
    </div>
  </div>
</div>

<div class="container">
  <%= render("shared/flash") %>
  <%= yield %>
</div>

<div class="footer" style="min-height: 30px;"></div>

<% parent_layout "base" %><commit_msg>Sidekiq menu link only for sysadmins<commit_after><% provide(:extra_admin_head) do %>
  <%= stylesheet_link_tag('admin', media: 'all') %>
  <%= javascript_include_tag('admin-core', media: 'all') %>
  <%= javascript_include_tag('admin', media: 'all') %>
<% end %>

<div class="navbar navbar-dark bg-dark navbar-static-top navbar-expand-md mb-4" role="navigation">
  <div class="container-lg">
    <%= link_to(admin_dashboard_path, :class => "navbar-brand mr-auto") do %>
      <%= fa_icon(:cogs, :text => "CATIMA admin") %>
    <% end %>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="navbar-collapse collapse  justify-content-end">
      <ul class="nav navbar-nav">
        <li class="nav-item">
          <%= link_to(root_path, class: "nav-link") do %>
            Homepage
          <% end %>
        </li>
        <% if current_user.system_admin? %>
          <li class="nav-item">
            <%= link_to("/sidekiq", class: "nav-link") do %>
              Sidekiq
            <% end %>
          </li>
        <% end %>
        <%= render("shared/navbar/user_menu") %>
      </ul>
    </div>
  </div>
</div>

<div class="container">
  <%= render("shared/flash") %>
  <%= yield %>
</div>

<div class="footer" style="min-height: 30px;"></div>

<% parent_layout "base" %>
{'fraction_non_alphanumeric': 0.1992442459635864, 'fraction_numerical': 0.0020611473720371005, 'mean_word_length': 3.1363636363636362, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 81, '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': '646044', 'n_tokens_mistral': 1056, 'n_tokens_neox': 961, 'n_words': 180}