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

<% if @favorite_projects.any? %>
  <table class="list projects ux-toolkit-favorite-projects">
    <thead>
      <tr>
        <th><%= l(:label_project) %></th>
        <th><%= l(:field_identifier) %></th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <% @favorite_projects.each do |project| %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td class="name"><%= link_to_project(project) %></td>
          <td class="identifier"><%= project.identifier %></td>
          <td class="buttons">
            <%= button_to l(:label_ux_toolkit_remove_project_from_favorites),
                          remove_ux_toolkit_favorite_project_path(project),
                          method: :delete,
                          class: 'button-small' %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <p class="nodata"><%= l(:text_ux_toolkit_no_favorite_projects) %></p>
<% end %>

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