Sha256: 0ac29c4852fc67513e809c7bccc7f076f9885c2a59551aec39ffd0ee975b4a33

Contents?: true

Size: 1.22 KB

Versions: 27

Compression:

Stored size: 1.22 KB

Contents

= breadcrumb
- charts_high = []
- charts_medium = []
- self.methods.each do |m|
  - charts_high << m if m.start_with? "charts_high_"
  - charts_medium << m if m.start_with? "charts_medium_"
  
- charts_high.in_groups_of(2, false).each_with_index do |group, i|
  .row
    - group.each do |item|
      .col-sm-6
        .box= self.send(item)
  
- charts_medium.in_groups_of(3, false).each_with_index do |group, i|
  .row
    - group.each do |item|
      .col-sm-4
        .box= self.send(item)

- if @abstract_models
  .row
    - @abstract_models.each do |abstract_model|
      - index_path = index_path(model_name: abstract_model.to_param)
      - if authorized?(:index, abstract_model)
        .col-sm-4
          %a.box.pjax{href: index_path}
            %i{class: "icon-bg #{abstract_model.config.navigation_icon.present? ? abstract_model.config.navigation_icon : 'file' }"}
            .text-center
              %p.model= capitalize_first_letter(abstract_model.config.label_plural)
              %strong.count= @count[abstract_model.model.name].to_s

- if @auditing_adapter && authorized?(:history_index)
  #block-tables.block
    .content
      %h2= t("admin.actions.history_index.menu")
      = render partial: 'rails_admin/main/dashboard_history'

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.3.2 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.3.1 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.3.0 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.12 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.11 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.10 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.9 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.8 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.7 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.6 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.5 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.4 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.3 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.2 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.1 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.2.0 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.1.22 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.1.21 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.1.20 app/views/rails_admin/main/dashboard.html.haml
thecore_ui_rails_admin-2.1.19 app/views/rails_admin/main/dashboard.html.haml