<commit_before><div class="btn-group col-xs-12" role="toolbar" aria-label="...">

  <%= link_to activate_module_url(module: 'blog', subdomain: @restaurant), class: "btn btn-default", method: :patch do %>
    <%= glyphicon "unchecked" %> <%= @restaurant.module_blog ? "désactiver" : "activer"  %> le blog
  <% end %>

  <%= link_to activate_module_url(module: 'allergens', subdomain: @restaurant), class: "btn btn-default", method: :patch do %>
    <%= glyphicon "unchecked" %> <%= @restaurant.module_allergens ? "désactiver" : "activer"  %> les allergènes
  <% end %>

</div> <commit_msg>improve module list<commit_after><div class="btn-group col-xs-12" role="toolbar" aria-label="...">

  <% {
      'blog'      => 'le blog',
      'allergens' => 'les allergènes',
      'contact'   => 'le formulaire de contact'}.each do |module_name, description| %>

    <%= link_to activate_module_url(module: module_name, subdomain: @restaurant), class: "btn btn-default", method: :patch do %>
      <% activated = @restaurant.send("module_#{module_name}") %>
      <%= glyphicon(activated ? "check" : "unchecked") %> <%= activated ? "désactiver" : "activer"  %> <%= description %>
    <% end %>

  <% end %>

</div> 
{'fraction_non_alphanumeric': 0.19734660033167495, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 4.202586206896552, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 26, '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': '7380012', 'n_tokens_mistral': 450, 'n_tokens_neox': 402, 'n_words': 88}