Sha256: e5996a41073b172066f34e174823c80e834264d6014a332b974268dc26857f1e
Contents?: true
Size: 1.08 KB
Versions: 46
Compression:
Stored size: 1.08 KB
Contents
.panel.panel-default.panel-with-actions.itsf-dashboard-panel .panel-heading .panel-title = t("classes.#{engine.name.underscore}") .panel-actions = link_to(t('.view'), main_app.send("#{engine.engine_name}_path"), class: 'btn btn-primary btn-xs') %table.table.table-striped.table-hover.table-condensed - "#{engine.to_s.deconstantize}::Configuration".constantize.registered_controllers.call.each do |kontroller| - if !Itsf::Backend.features?(:pundit) || policy(kontroller.resource_class).index? %tr %th.col-md-3= kontroller.resource_class.model_name.human(count: :other) %td.item-count %span.label.label-default - if respond_to?(:current_user) && current_user.respond_to?(:last_sign_in_at) && kontroller.resource_class.respond_to?(:column_names) && kontroller.resource_class.column_names.include?('updated_at') = "#{kontroller.resource_class.where("updated_at > ?", current_user.last_sign_in_at).count}/#{kontroller.resource_class.count}" - else = kontroller.resource_class.count
Version data entries
46 entries across 46 versions & 1 rubygems