<commit_before><% page_title "Worldwide organisation" %>

<nav class="actions">
  <%= link_to "Create Worldwide organisation", new_admin_worldwide_organisation_path, class: "btn new_resource", title: "Create a Worldwide Office" %>
</nav>

<h1>Worldwide organisations</h1>

<table class="worldwide_organisation table table-striped">
  <thead>
    <tr>
      <th width="70%">Summary</th>
      <th width="15%">Location(s)</th>
      <th width="15%">Sponsor(s)</th>
    </tr>
  </thead>
  <tbody>
    <% if @worldwide_organisations.any? %>
      <% @worldwide_organisations.each do |worldwide_organisation| %>
        <%= content_tag_for(:tr, worldwide_organisation) do %>
          <td>
            <p class="name"><%= link_to worldwide_organisation.name, admin_worldwide_organisation_path(worldwide_organisation), title: "View #{worldwide_organisation.name}" %></p>
            <p class="summary"><%= worldwide_organisation.summary %></p>
            <p class="locales">
              Translations:
              <% if worldwide_organisation.non_english_translated_locales.any? %>
                <%= worldwide_organisation.non_english_translated_locales.map do |locale|
                  link_to("#{locale.english_language_name} (#{locale.native_language_name})", edit_admin_worldwide_organisation_translation_path(worldwide_organisation, locale.code))
                end.to_sentence.html_safe %>
              <% else %>
                none
              <% end %>
            </p>
          </td>
          <td><%= worldwide_organisation.world_locations.map {|l| link_to(l.name, [:admin, l])}.to_sentence.html_safe %></td>
          <td><%= worldwide_organisation.sponsoring_organisations.map {|o| link_to(o.acronym, [:admin, o])}.to_sentence.html_safe %></td>
        <% end %>
      <% end %>
    <% else %>
      <tr>
        <td colspan="3">No worldwide organisations have been created.</td>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>Add translations column to worldwide org index<commit_after><% page_title "Worldwide organisation" %>

<nav class="actions">
  <%= link_to "Create Worldwide organisation", new_admin_worldwide_organisation_path, class: "btn new_resource", title: "Create a Worldwide Office" %>
</nav>

<h1>Worldwide organisations</h1>

<table class="worldwide_organisation table table-striped">
  <thead>
    <tr>
      <th width="40%">Summary</th>
      <th width="40%">Translations</th>

      <th width="15%">Location(s)</th>
      <th width="15%">Sponsor(s)</th>
    </tr>
  </thead>
  <tbody>
    <% if @worldwide_organisations.any? %>
      <% @worldwide_organisations.each do |worldwide_organisation| %>
        <%= content_tag_for(:tr, worldwide_organisation) do %>
          <td class="name">
            <%= link_to worldwide_organisation.name, admin_worldwide_organisation_path(worldwide_organisation), title: "View #{worldwide_organisation.name}" %>
          </td>
          <td>
              <% if worldwide_organisation.non_english_translated_locales.any? %>
                <%= worldwide_organisation.non_english_translated_locales.map do |locale|
                  link_to("#{locale.english_language_name} (#{locale.native_language_name})", edit_admin_worldwide_organisation_translation_path(worldwide_organisation, locale.code))
                end.to_sentence.html_safe %>
              <% else %>
                none
              <% end %>
          </td>
          <td><%= worldwide_organisation.world_locations.map {|l| link_to(l.name, [:admin, l])}.to_sentence.html_safe %></td>
          <td><%= worldwide_organisation.sponsoring_organisations.map {|o| link_to(o.acronym, [:admin, o])}.to_sentence.html_safe %></td>
        <% end %>
      <% end %>
    <% else %>
      <tr>
        <td colspan="3">No worldwide organisations have been created.</td>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.15018125323666495, 'fraction_numerical': 0.005178663904712584, 'mean_word_length': 3.1008492569002124, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, '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': '6956356', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1192, 'n_words': 211}