Sha256: c377036960f1f5fc64d4ef7714ced87bcabf0c8ef77b32ca29b8c87178421133

Contents?: true

Size: 1.77 KB

Versions: 13

Compression:

Stored size: 1.77 KB

Contents

- entity = controller.entity
- if controller.actions.any?
  .card_actions.ui.segment
    .action_controller
      .ui.buttons.controls
        %a.item.reload.ui.icon.disabled.button(href="#" title="Refresh action")
          %i.icon.repeat

        -#%a.item.description.ui.icon.disabled.button(href="#" title="View description")
          %i.icon.book

        -#%a.item.parameters.ui.icon.disabled.button(href="#" title="Configure parameters")
          %i.icon.setting

        
        -#%a.item.pin.ui.icon.disabled.button(href="#" title="Make this configuration default")
          %i.icon.pin

        
        -#%a.item.url.ui.icon.disabled.button(href="#" title="Bookmark action")
          %i.icon.bookmark

      .ui.buttons.action_menu
        - last_resource = nil
        - controller.actions.each do |action, text, resource, params|
          //.ui.item.button(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?
            = entity.list_action_link action, text, id, params.merge(:reuse => true, :class => 'ui item button')
          - when TSV === entity
            - id = params.delete :id if Hash === params
            - id = controller.id if id.nil?
            - type = page_entity_type
            - column = page_entity_map_column
            %a.entity_map_action.ui.item.button(href="#{Entity::REST.entity_map_action_url id, type, column, action}")= text 
          - else
            = entity.action_link action, text, params.merge(:class => 'ui item button')
          - last_resource = resource

      .progress.ui.message

    .action_loader.ui.very.basic.segment<

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rbbt-rest-1.6.15 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.14 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.13 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.12 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.11 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.10 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.9 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.8 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.7 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.6 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.5 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.4 share/views/entity_partials/action_controller.haml
rbbt-rest-1.6.3 share/views/entity_partials/action_controller.haml