Sha256: 4384075ee31d4490290f61b511b637478b3e52b482293362481760c85ee3ff65

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

- if partials.show?(:buttons) and can?(:create)
  - b.tool do
    - buttons_html = rad.kit.items.collect{|name| link_to(t(name), send("new_#{name}_path", format: :js), method: :get)}.join(tag(:span, ', '))
    - if rad.kit.default_item
      - b.more id: 'add_buttons', name: t(:show_more), class: 'm_tiny' do |o|
        - o.core do
          = link_to(t(:add), send("new_#{rad.kit.default_item}_path", format: :js), method: :get) + ",\n"
        - o.more do
          = buttons_html
    - else
      = buttons_html

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_kit-0.0.10 app/views/tools/_buttons.html.haml