<%= render 'messages' %>

<%= t('sessions.title') %>

<%= raw t('sessions.currently_logged_in_as', :username => @ticket_granting_tickets[0].user.username) %>

<%= link_to t('sessions.label_logout_button'), logout_path, :class => 'button' %>

<%= t('two_factor_authenticators.title') %>

<% if @two_factor_authenticators.blank? %> <%= t('two_factor_authenticators.disabled') %> - <%= link_to t('two_factor_authenticators.enable'), new_two_factor_authenticator_path %> <% else %> <%= t('two_factor_authenticators.enabled') %> - <%= button_to t('two_factor_authenticators.disable'), two_factor_authenticator_path(@two_factor_authenticators[0].id), method: :delete %> <% end %>

<%= t('sessions.your_active_sessions') %>

<% @ticket_granting_tickets.each do |ticket_granting_ticket| %> <% end %>
<%= t('sessions.table.column_browser') %> <%= t('sessions.table.column_services') %> <%= t('sessions.table.column_activity') %>  
<%= ticket_granting_ticket.browser_info %> <%= ticket_granting_ticket.service_tickets.size %> <%= t 'datetime.ago', datetime: distance_of_time_in_words_to_now(ticket_granting_ticket.updated_at) %> <% if current_ticket_granting_ticket?(ticket_granting_ticket) %> <%= t('sessions.current_session') %> <% else %> <%= button_to t('sessions.end_session'), session_path(ticket_granting_ticket.id), method: :delete %> <% end %>
<%= render 'footer' %>