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

Version Path
itsf_backend-5.0.0.pre app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.2.3 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.2.2 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.2.1 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.2.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.0.1 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-4.0.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.1.1 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.1.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.7 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.6 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.5 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.4 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.3 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.2 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.1 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-3.0.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-2.2.1 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-2.2.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml
itsf_backend-2.1.0 app/views/itsf/backend/dashboard/_dashboard_panel.html.haml