Sha256: 29c3418a762b6b52b67333e027ae6d25282246fd207590b5b6e2c8a353725abc

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

= breadcrumb
- @list_bg = ['info', 'success', 'danger', 'success', 'info', 'warning', 'danger', 'info', 'success']
- if @abstract_models
  .row
    - index = 0
    - @abstract_models.each do |abstract_model|
      - index_path = index_path(model_name: abstract_model.to_param)
      - if authorized?(:index, abstract_model) && !index_path.include?("ckeditor")
        - if index == @list_bg.length
          - index = 0
        - row_class = "box bg-#{ @list_bg[index].to_s } #{"link" if index_path} #{abstract_model.param_key}_links #{abstract_model.config.label_plural}"
        .col-sm-4
          .box{class: row_class, :"data-link" => index_path}
            %i{class: "icon-bg #{abstract_model.config.navigation_icon.present? ? abstract_model.config.navigation_icon : 'file' }"}
            .text-center
              %p= capitalize_first_letter(abstract_model.config.label_plural)
              %strong= @count[abstract_model.model.name].to_s
              %p= link_to content_tag("i", "", class: "fa fa-list-ul"), index_path, class: 'btn btn-black pjax'
        - index += 1

- 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

1 entries across 1 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.1.9 app/views/rails_admin/main/dashboard.html.haml