<commit_before><% content_for :head do %>
  <style type="text/css">
    .user_app_infos .dl-horizontal dt {
      width: 100px;
    }
    .user_app_infos .dl-horizontal dd {
      margin-left: 120px;
    }
  </style>
<% end %>

<div class="page-header">
  <h1>Benutzergruppe <small><%= @group.name %></small></h1>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Registrier-Link</div>
  <div class="panel-body">
    <%= link_to new_user_registration_url(:group => @group.name), new_user_registration_path(:group => @group.name) %>
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Benutzer</div>
  <div class="panel-body">

    <%= link_to 'Benutzer hinzufügen', new_groups_user_path({:group => @group}), :class => 'btn btn-primary' %>

    <table class="table table-striped">
      <thead>
        <tr>
          <th>Login</th>
          <th>Benutzer</th>
          <th>E-Mail</th>
          <th>Freigeschaltet</th>
          <th>Info</th>
          <th></th>
          <th></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @groups_users.each do |groups_user| %>
          <tr>
            <td><%= groups_user.user.login %></td>
            <td><%= groups_user.user.name %></td>
            <td><%= groups_user.user.email %></td>
            <td>
              <span class="label label-<%= groups_user.granted ? 'success' : 'danger' %>">
                <%= groups_user.granted ? "ja" : "nein" %>
              </span>
            </td>
            <td class="user_app_infos">
              <% unless groups_user.user.app_infos.nil? %>
                <dl class="dl-horizontal">
                  <% groups_user.user.app_infos.sort.each do |key, value| %>
                    <dt><%= key %></dt>
                    <dd><%= value %></dd>
                  <% end %>
                </dl>
              <% end %>
            </td>
            <td>
              <%= link_to "Freigabe", edit_groups_user_path(groups_user), :class => 'btn btn-primary' %>
            </td>
            <td>
              <%= link_to "Bearbeiten", edit_user_path(groups_user.user), :class => 'btn btn-default' %>
            </td>
            <td>
              <%= link_to "Entfernen", groups_user, :confirm => 'Benutzer aus Gruppe entfernen?', :method => :delete, :class => 'btn btn-danger' %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div><commit_msg>show user app_infos keys as popup on group page<commit_after><% content_for :head do %>
  <style type="text/css">
    .user_app_infos .dl-horizontal dt {
      width: 100px;
    }
    .user_app_infos .dl-horizontal dd {
      margin-left: 120px;
    }
  </style>
<% end %>

<div class="page-header">
  <h1>Benutzergruppe <small><%= @group.name %></small></h1>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Registrier-Link</div>
  <div class="panel-body">
    <%= link_to new_user_registration_url(:group => @group.name), new_user_registration_path(:group => @group.name) %>
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Benutzer</div>
  <div class="panel-body">

    <%= link_to 'Benutzer hinzufügen', new_groups_user_path({:group => @group}), :class => 'btn btn-primary' %>

    <table class="table table-striped">
      <thead>
        <tr>
          <th>Login</th>
          <th>Benutzer</th>
          <th>E-Mail</th>
          <th>Freigeschaltet</th>
          <th>Info</th>
          <th></th>
          <th></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @groups_users.each do |groups_user| %>
          <tr>
            <td><%= groups_user.user.login %></td>
            <td><%= groups_user.user.name %></td>
            <td><%= groups_user.user.email %></td>
            <td>
              <span class="label label-<%= groups_user.granted ? 'success' : 'danger' %>">
                <%= groups_user.granted ? "ja" : "nein" %>
              </span>
            </td>
            <td class="user_app_infos">
              <% unless groups_user.user.app_infos.nil? %>
                <dl class="dl-horizontal">
                  <% groups_user.user.app_infos.sort.each do |key, value| %>
                    <dt title="<%= key %>"><%= key %></dt>
                    <dd><%= value %></dd>
                  <% end %>
                </dl>
              <% end %>
            </td>
            <td>
              <%= link_to "Freigabe", edit_groups_user_path(groups_user), :class => 'btn btn-primary' %>
            </td>
            <td>
              <%= link_to "Bearbeiten", edit_user_path(groups_user.user), :class => 'btn btn-default' %>
            </td>
            <td>
              <%= link_to "Entfernen", groups_user, :confirm => 'Benutzer aus Gruppe entfernen?', :method => :delete, :class => 'btn btn-danger' %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1850290989363837, 'fraction_numerical': 0.0032109171182018864, 'mean_word_length': 1.8253968253968254, 'pattern_counts': {'":': 0, '<': 186, '<?xml version=': 0, '>': 204, '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': '3094692', 'n_tokens_mistral': 1774, 'n_tokens_neox': 1656, 'n_words': 313}