share/views/entity_partials/action_controller.haml in rbbt-rest-1.1.5 vs share/views/entity_partials/action_controller.haml in rbbt-rest-1.2.0
- old
+ new
@@ -1,8 +1,7 @@
- entity = controller.entity
- if controller.actions.any?
-
.action_controller
%ul.controls
%li.reload
%a.reload_action(href="#")
@@ -10,14 +9,18 @@
%li.parameters
%a(href="#")
%i.general.foundicon-settings
- %ul.actions
- %li.select
+ %li.pin
%a(href="#")
- %i.general.foundicon-plus
+ %i.general.foundicon-paper-clip
+ %li.url
+ %a(href="#")
+ %i.general.foundicon-flag
+
+ %ul.actions
- last_resource = nil
- controller.actions.each do |action, text, resource, params|
%li(class="#{last_resource and last_resource != resource ? "new_resource" : ""}" attr-resource="#{resource}")
- case
- when AnnotatedArray === entity