<h2><%= l(:label_ux_toolkit_recently_visited_projects) %></h2>

<% if @recent_projects.any? %>
  <table class="list projects ux-toolkit-recent-projects">
    <thead>
      <tr>
        <th><%= l(:label_project) %></th>
        <th><%= l(:label_ux_toolkit_project_identifier) %></th>
        <th><%= l(:label_ux_toolkit_last_visited_at) %></th>
      </tr>
    </thead>
    <tbody>
      <% @recent_projects.each do |recent_project| %>
        <% project = recent_project.project %>
        <% next unless project %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td class="name"><%= link_to_project(project) %></td>
          <td class="identifier"><%= h(project.identifier) %></td>
          <td class="last-visited"><%= format_time(recent_project.last_visited_at) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <p class="nodata"><%= l(:text_ux_toolkit_no_recent_projects) %></p>
<% end %>

<% html_title(l(:label_ux_toolkit_recently_visited_projects)) %>
