<% if can_create_new_report(@project) %>
<%= link_to new_project_reports_path(@project), class: 'btn btn-primary', id: 'new-report-btn', 'data-no-turbolink' => true do %>
<%=t "projects.reports.index.new" %>
<% end %>
<%= link_to "", remote: true, class: "btn btn-default", id: "edit-report-btn" do %>
<%=t "projects.reports.index.edit" %>
<% end %>
<% if can_delete_reports(@project) %>
<%= link_to "", remote: true, class: "btn btn-default", id: "delete-reports-btn" do %>
<%=t "projects.reports.index.delete" %>
<% end %>
<% end %>
<% end %>
<%=t "projects.reports.index.thead_name" %> | <%=t "projects.reports.index.thead_created_by" %> | <%=t "projects.reports.index.thead_last_modified_by" %> | <%=t "projects.reports.index.thead_created_at" %> | <%=t "projects.reports.index.thead_updated_at" %> | ||
---|---|---|---|---|---|---|
<%= report.name %> | <%= report.user.full_name %> | <%= report.last_modified_by ? report.last_modified_by.full_name : report.user.full_name %> | <%=l report.created_at, format: :full %> | <%=l report.updated_at, format: :full %> | ||
<%=t "projects.reports.index.no_reports" %> |