Sha256: 44eaaab786c3015482a40be38bad845e4930b82f93dfa5db17002fad6ebeeb15

Contents?: true

Size: 1.79 KB

Versions: 40

Compression:

Stored size: 1.79 KB

Contents

- entity = controller.entity
- if controller.actions.any?
  .card_actions.ui.segment#entity_actions
    .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

      .action_progress.ui.info.message

    .action_loader.ui.very.basic.segment<

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
rbbt-rest-1.8.140 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.139 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.138 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.137 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.136 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.135 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.134 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.133 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.132 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.131 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.130 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.129 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.126 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.123 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.122 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.121 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.120 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.119 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.118 share/views/entity_partials/action_controller.haml
rbbt-rest-1.8.117 share/views/entity_partials/action_controller.haml