Sha256: adef288174ba6c6642640bd3c07e79104576604439add3425ae6254cb51ee395

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 Bytes

Contents

:javascript
  $('.nav.nav-pills li.active').removeClass('active');
  $('.nav.nav-pills li[data-model="#{@abstract_model.to_param}"]').addClass('active');

%title= "#{@abstract_model.try(:pretty_name) || @page_name} | #{[_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' ')}"
.page-header
  %h1= @page_name
- flash && flash.each do |key, value|
  - key = 'danger' if key.to_s == 'error'
  .alert{class: "alert-#{key}"}
    %a.close{href: '#', :'data-dismiss' => "alert"} ×
    = value
= breadcrumb
%ul.nav.nav-tabs
  = menu_for((@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root), @abstract_model, @object)
  = content_for :contextual_tabs
= yield

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin-0.6.7 app/views/layouts/rails_admin/pjax.html.haml
rails_admin-0.6.6 app/views/layouts/rails_admin/pjax.html.haml