<section class="viewblock">
  <header class="viewblock-header">
    <h1 class="default-padding"><%= t('.your_network') %></h1>
  </header>
  <div class="viewblock-cont">
    <div class="row-fluid">
      <div class="span6">
        <div class="default-padding">
          <% if current_user.groups.count > 0 %>
            <p><%= Group.model_name.human(count: 42) %>:</p>
            <ul>
              <% current_user.groups.each do |group| %>
                <li><%= link_to group.name, group %></li>
              <% end %>
            </ul>
          <% else %>
            <p><%= t('.no_membership') %></p>
          <% end %>
        </div>
      </div>
      <div class="span6">
        <div class="default-padding">
          <% if current_user.screens.count > 0 %>
            <p><%= Screen.model_name.human(count: 42) %>:</p>
            <ul>
              <% current_user.screens.each do |screen| %>
                <li><%= link_to screen.name, screen %></li>
              <% end %>
            </ul>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</section>
