= 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.bg.bg-clear= 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.bg.bg-clear= self.send(item) - @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'