% if @abstract_models %>
<%= 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 = count > 0 ? (@max <= 1 ? count : ((Math.log(count+1) * 100.0) / Math.log(@max+1)).to_i) : -1 %> |