Sha256: 9fc023db610e4850e05a15da2b7fea07b9dca2300ac12cf2b0571d40514bda95

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

<% content_for :tabbar_title do %>
  <%= @project.name %>
<% end %>

<%#= render_cell :project, :show, project: @project %>

<%= render "shared/project_tabs" %>

<div class="tabs-panel">
  <% if project_admin_access? %>
    <div class="row">
      <div class="small-12 columns">
        <%#= link_to fa_icon("plus-square", text: "Add Deadline", class: "fa-fw"), [:new, @organization, @project, :deadline] %>
      </div>
    </div>
  <% end %>
  <table class="responsive">
    <thead>
    <tr>
      <th>Status</th>
      <th>Area</th>
      <th>Category</th>
      <th>Due Date</th>
      <th>Selection Count</th>
      <th>&nbsp;</th>
    </tr>
    </thead>
    <tbody>
    <% @deadlines.each do |deadline| -%>
      <tr>
        <td><%= status_icon(deadline.status) %></td>
        <td><%= deadline.area.try(:name) %></td>
        <td><%= deadline.category.try(:name) %></td>
        <td><%= deadline.due_date %></td>
        <td><%= deadline.selection_count %></td>
        <td>
          <%#= link_to fa_icon("list", text: "Details", class: "fa-fw"), [@organization, @project, deadline], class: "tiny button radius" %>
          <% if project_admin_access? %>
            <%#= link_to fa_icon("pencil", text: "Edit", class: "fa-fw"), [:edit, @organization, @project, deadline], class: "tiny button radius" %>
            <%#= link_to fa_icon("trash-o", text: "Delete", class: "fa-fw"), [@organization, @project, deadline],
              method: :delete, data: { confirm: "Are you sure?" }, class: "tiny button radius" %>
          <% end %>
        </td>
      </tr>
    <% end -%>
    </tbody>
  </table>

  <%#= paginate @deadlines %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_systeem-0.1.0 test/dummy_app/app/views/shared/deadlines/index.html.erb