share/views/entity_partials/action_controller.haml in rbbt-rest-1.2.33 vs share/views/entity_partials/action_controller.haml in rbbt-rest-1.2.34
- old
+ new
@@ -2,27 +2,32 @@
- if controller.actions.any?
.action_controller
%ul.controls
%li.reload
- %a.reload_action(href="#")
- %i.general.foundicon-refresh
+ %a.reload_action(href="#" title="Refresh action")
+ %i.general.fi-refresh
+ %li.url
+ %a(href="#" title="Bookmark action")
+ %i.general.fi-bookmark
+
%li.parameters
- %a(href="#")
- %i.general.foundicon-settings
+ %a(href="#" title="Configure parameters")
+ %i.general.fi-widget
%li.pin
- %a(href="#")
- %i.general.foundicon-paper-clip
+ %a(href="#" title="Make this configuration default")
+ %i.general.fi-paperclip
- %li.url
- %a(href="#")
- %i.general.foundicon-flag
+ %li.description
+ %a(href="#" title="View description")
+ %i.general.fi-book
+
%ul.actions
- last_resource = nil
- - controller.actions.each do |action, text, resource, params|
+ - controller.actions.reverse.each do |action, text, resource, params|
%li(class="#{last_resource and last_resource != resource ? "new_resource" : ""}" attr-resource="#{resource}")
- case
- when AnnotatedArray === entity
- id = params.delete :id if Hash === params
- id = controller.id if id.nil?