Codeminer42/cm42-central

View on GitHub
app/views/projects/archived.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title_bar do %>
  <span class="navbar-brand"><%= t('projects.archived projects') %></span>
<% end %>

<div class="row">
  <div class="col-xs-12 col-sm-6">
    <ul class="list-group">
      <% @projects.order(:name).each do |project| %>
      <li class="list-group-item clearfix">
        <div class="member-name">
          <%= project.name %> (<%= project.archived_at.to_s(:short) %>)
        </div>
        <%= form_for [:unarchive, project], method: :patch do |f| %>
          <%= f.submit t('projects.unarchive'), class: 'btn btn-danger btn-sm pull-right' %>
        <% end %>
      </li>
      <% end %>
    </ul>
  </div>
</div>