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

<% if @recent_issues.any? %>
  <table class="list issues ux-toolkit-recent-issues">
    <thead>
      <tr>
        <th><%= l(:label_issue) %></th>
        <th><%= l(:field_project) %></th>
        <th><%= l(:field_status) %></th>
        <th><%= l(:field_priority) %></th>
        <th><%= l(:label_ux_toolkit_last_visited_at) %></th>
      </tr>
    </thead>
    <tbody>
      <% @recent_issues.each do |recent_issue| %>
        <% issue = recent_issue.issue %>
        <% next unless issue %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td class="subject"><%= link_to_issue(issue) %></td>
          <td class="project"><%= link_to_project(issue.project) %></td>
          <td class="status"><%= h(issue.status) %></td>
          <td class="priority"><%= h(issue.priority) %></td>
          <td class="last-visited"><%= format_time(recent_issue.last_visited_at) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <p class="nodata"><%= l(:text_ux_toolkit_no_recent_issues) %></p>
<% end %>

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