    <% unless integrations_by_type.empty?  %>
    <ul class="integrations <%= extraClass %>">
      <% [['in', t('schools.integrations.in') ],
          ['out', t('schools.integrations.out')],
          ['inout', t('schools.integrations.inout')],
          ['email', t('schools.integrations.email')],
          ['login', t('schools.integrations.login')],
          ['password', t('schools.integrations.password')],
          ['other', t('schools.integrations.other')]].each do |system| %>
      <% integrations_by_type.fetch(system[0], []).each do |name| %>
      <% if system[0] == 'in' %>
      <li class="<%= system[0] %>" title="<%= system[1] %>"><%= name %><span class="dirIn"></span>Puavo</li>
      <% elsif system[0] == 'out' %>
      <li class="<%= system[0] %>" title="<%= system[1] %>">Puavo<span class="dirOut"></span><%= name %></li>
      <% elsif system[0] == 'inout' %>
      <li class="<%= system[0] %>" title="<%= system[1] %>">Puavo<span class="dirInOut"></span><%= name %></li>
      <% else %>
      <li class="<%= system[0] %>" title="<%= system[1] %>"><%= name %></li>
      <% end %>
      <% end %>
      <% end %>
    </ul>

    <% if defined?(next_updates) %>
    <ul class="nextUpdates">
    <% next_updates.sort{ |a, b| a[0] <=> b[0] }.each do |name, upd| %>
      <% if integration_names.include?(name) %>
      <li>
        <span class="system"><%= integration_names[name] %></span>:
        <span class="at"><%= upd[:at].strftime("%d.%m.%Y %H:%M") %></span>
        <span class="in"><%= upd[:in] %></span>
      </li>
      <% end %>
    <% end %>
    </ul>
    <% end %>

    <% end %>
