Sha256: 9d9cccf056b29ca2aeab811f54f5132946f8753b50089b6dd02076f056aa0b0f

Contents?: true

Size: 1.7 KB

Versions: 7

Compression:

Stored size: 1.7 KB

Contents

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

<table class="table dashboard">
  <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 'dashboard/sidebar' %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iqvoc-4.0.8 app/views/dashboard/index.html.erb
iqvoc-4.0.7 app/views/dashboard/index.html.erb
iqvoc-4.0.6 app/views/dashboard/index.html.erb
iqvoc-4.0.5 app/views/dashboard/index.html.erb
iqvoc-4.0.4 app/views/dashboard/index.html.erb
iqvoc-4.0.3 app/views/dashboard/index.html.erb
iqvoc-4.0.2 app/views/dashboard/index.html.erb