<% if @abstract_models %> <% @abstract_models.each do |abstract_model| %> <% if authorized? :index, abstract_model %> <% index_path = index_path(model_name: abstract_model.to_param) %> <% row_class = "#{cycle('odd', 'even')}#{' link' if index_path} #{abstract_model.param_key}_links" %> <% last_created = @most_recent_created[abstract_model.model.name] %> <% active = last_created.try(:today?) %> <% end %> <% end %>
<%= t "admin.table_headers.model_name" %> <%= t "admin.table_headers.last_created" %> <%= t "admin.table_headers.records" %>
<%= link_to abstract_model.config.label_plural, index_path %> <% if last_created %> <%= t "admin.misc.time_ago", time: time_ago_in_words(last_created), default: "#{time_ago_in_words(last_created)} #{t('admin.misc.ago')}" %> <% end %> <% count = @count[abstract_model.model.name] %> <% percent = if count.positive? @max <= 1 ? count : ((Math.log(count + 1) * 100.0) / Math.log(@max + 1)).to_i else -1 end %>
progress" style="margin-bottom:0px">
<%= @count[abstract_model.model.name] %>
<% end %> <% if @history && authorized?(:history_index) %>

<%= t("admin.actions.history_index.menu") %>

<%= render partial: "rails_admin/main/dashboard_history" %>
<% end %>