Sha256: 8747a424af66cb14bc24a1938247d3c742211245f14f5532a44f5176ff253498

Contents?: true

Size: 599 Bytes

Versions: 13

Compression:

Stored size: 599 Bytes

Contents

<% if current_user.present? %>
  <%= link_to(
        path,
        class: button_classes,
        title: text,
        method:,
        remote:,
        id: dom_id(model, id_option)
      ) do %>
    <%= render :content %>
  <% end %>
<% else %>
  <%= action_authorized_button_to(
        :follow,
        path,
        resource: model,
        class: button_classes,
        title: t("decidim.shared.follow_button.log_in_before_follow"),
        params: req_params,
        'aria-haspopup': true,
        id: dom_id(model, id_option)
      ) do %>
    <%= render :content %>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.4 app/cells/decidim/follow_button/show.erb
decidim-core-0.29.0 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.3 app/cells/decidim/follow_button/show.erb
decidim-core-0.29.0.rc4 app/cells/decidim/follow_button/show.erb
decidim-core-0.29.0.rc3 app/cells/decidim/follow_button/show.erb
decidim-core-0.29.0.rc2 app/cells/decidim/follow_button/show.erb
decidim-core-0.29.0.rc1 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.2 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.1 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.0 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.0.rc5 app/cells/decidim/follow_button/show.erb
decidim-core-0.28.0.rc4 app/cells/decidim/follow_button/show.erb