app/views/admin/manager/_form.html.slim in ab_admin-0.3.6 vs app/views/admin/manager/_form.html.slim in ab_admin-0.4.0
- old
+ new
@@ -6,20 +6,34 @@
- if node.group?
- if node.localized?
= f.locale_tabs do |l|
- node.fields.each do |field|
- field.options[:as] = :editor if !field.options.key?(:as) && field.name.to_s =~ /description|content|body/
- = f.input field.name, field.options.merge(locale: l)
+ = f.render_dsl_node field, locale: l
- else
= input_set node.title, node.options do
- node.fields.each do |field|
- = f.input field.name, field.options
+ = f.render_dsl_node field
- else
- = f.input node.name, node.options
+ = f.render_dsl_node node
- if f.object.respond_to?(:fileupload_guid) && f.object.new_record?
= f.hidden_field :fileupload_guid
= f.save_buttons
- if settings[:comments]
= admin_comments
+
+ - if settings[:history] && settings[:history][:sidebar]
+ .sidebar.abs_bar.well.well-small
+ label.do_toggle.label.label-large= t 'admin.actions.history.title'
+ table.table.table-striped
+ thead
+ tr
+ th= Track.han(:created_at)
+ th= Track.han(:user)
+ tbody
+ - resource.tracks.recently.each do |a|
+ tr
+ td= l(a.created_at, format: :short)
+ td= auto_show_link a.user
\ No newline at end of file