Sha256: 9c479a5756e5fc579abb93c3ad28b4884d4320c82b463f9eea943027394d86b4

Contents?: true

Size: 1.55 KB

Versions: 6

Compression:

Stored size: 1.55 KB

Contents

%table.table.table-condensed.table-striped
  %thead
    %tr
      %th.shrink.model-name= t "admin.table_headers.model_name"
      %th.shrink.last-used= t "admin.table_headers.last_used"
      %th.records= t "admin.table_headers.records"
      %th.shrink.controls
  %tbody
    - @abstract_models.each do |abstract_model|
      - if authorized? :index, abstract_model
        - index_path = index_path(:model_name => abstract_model.to_param)
        - row_class = "#{cycle("odd", "even")}#{" link" if index_path}"

        %tr{:class => row_class, :"data-link" => index_path}
          %td
            %span.show= link_to abstract_model.config.label_plural, index_path, :class => 'pjax'
          %td
            - if (last_used = @most_recent_changes[abstract_model.pretty_name])
              = time_ago_in_words last_used
              = t "admin.misc.ago"
          %td
            - count = @count[abstract_model.pretty_name]
            - percent = count > 0 ? (@max < 2.0 ? count : ((Math.log(count) * 100.0) / Math.log(@max))) : -1
            .label.animate-width-to{:class => 'label-'+get_indicator(percent), :'data-animate-length' => ([1.0, percent].max.to_i * 20), :'data-animate-width-to' => "#{[2.0, percent - 1].max.to_i}%", :style => "width:2%"}= @count[abstract_model.pretty_name]
          %td.links
            %ul.inline= menu_for :collection, abstract_model, nil, true
- if @auditing_adapter && authorized?(:history)
  #block-tables.block
    .content
      %h2= t("admin.actions.history_index.menu")
      = render :partial => 'rails_admin/main/dashboard_history'

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rails_admin-0.0.5 app/views/rails_admin/main/dashboard.html.haml
rails_admin-0.0.4 app/views/rails_admin/main/dashboard.html.haml
rails_admin-0.0.3 app/views/rails_admin/main/dashboard.html.haml
rails_admin-0.0.2 app/views/rails_admin/main/dashboard.html.haml
upstream-rails_admin-1.0.2 app/views/rails_admin/main/dashboard.html.haml
rails_admin-0.0.1 app/views/rails_admin/main/dashboard.html.haml