Sha256: 34780a3c679d05aea873df45e0f2ae4f990f70c9816c07f9982d02590590775c

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

<%= page_header :title => 'Dashboard' %>

<table class="table">
  <thead>
    <tr>
      <th><%= t("txt.views.dashboard.type") %><%= sorting_controls_for(:class) %></th>
      <th><%= t("txt.views.dashboard.value") %><%= sorting_controls_for(:value) %></th>
      <th><%= t("txt.views.dashboard.locking_user") %><%= sorting_controls_for(:locking_user) %></th>
      <th><%= t("txt.views.dashboard.follow_up") %><%= sorting_controls_for(:follow_up) %></th>
      <th><%= t("txt.views.dashboard.updated_at") %><%= sorting_controls_for(:updated_at) %></th>
      <th><%= t("txt.views.dashboard.state") %><%= sorting_controls_for(:state) %></th>
      <%- if params[:check_consistency] == "1" -%>
        <th><%= t("txt.views.dashboard.consistent") %>?</th>
      <%- else -%>
        <th><%= link_to t("txt.views.dashboard.check_consistency"), dashboard_url(request.query_parameters.merge(:check_consistency => 1)) %></th>
      <%- end -%>
    </tr>
  </thead>
  <tbody>
    <% @items.each do |item| -%>
      <tr class="highlightable" data-url="<%= link_to_dashboard_item(item) %>">
        <td><%= item.class.model_name.human %></td>
        <td>
          <%= render item.class.edit_link_partial_name, :item => item %>
        </td>
        <td><%= item.locking_user.blank? ? "" : item.locking_user.name %></td>
        <td><%= l(item.follow_up) if item.follow_up.present? %></td>
        <td><%= l(item.updated_at, :format => :short) %></td>
        <td><%= item.state %></td>
        <td>
        <%- if params[:check_consistency] == "1" -%>
          <%= consistency_status(item) %>
        <%- end -%>
        </td>
      </tr>
    <% end -%>
  </tbody>
</table>

<%= paginate @items %>
<%= render 'sidebar' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iqvoc-4.0.1 app/views/dashboard/index.html.erb
iqvoc-4.0.0 app/views/dashboard/index.html.erb