Sha256: 200154461f0e3898addaec6d4f56e329d1ea56a90db1b0e834729f0d9bb25b64

Contents?: true

Size: 732 Bytes

Versions: 11

Compression:

Stored size: 732 Bytes

Contents

<div class="button_with_label<%= options[:active] ? ' active' : '' %>">
<% if options[:overlay] %>
  <%= link_to_overlay_window(
    render_icon(options[:icon]),
    options[:url],
    options[:overlay_options],
    {
      class: 'icon_button',
      title: options[:title],
      'data-alchemy-hotkey' => options[:hotkey]
    }.merge(options[:link_options])
  ) %>
<% else %>
  <%= link_to(
    options[:url], {
      class: "icon_button#{options[:loading_indicator] ? ' please_wait' : ''}",
        title: options[:title],
        'data-alchemy-hotkey' => options[:hotkey]
      }.merge(options[:link_options])
  ) do %>
    <%= render_icon(options[:icon]) %>
  <% end %>
<% end %>
  <label><%= options[:label] %></label>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/partials/_toolbar_button.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/partials/_toolbar_button.html.erb