Sha256: 91d8e30ab034012ab76fb1a523ee08bf490ac51f43d959b725f2e78db9f372ae
Contents?: true
Size: 886 Bytes
Versions: 18
Compression:
Stored size: 886 Bytes
Contents
<% if current_user %> <div id="follow-resource"> <% if current_user.follows?(followable) %> <%= button_to decidim.follow_path, class: "button secondary hollow expanded small button--icon follow-button", params: { follow: { followable_gid: followable.to_sgid.to_s }}, data: { disable: true }, method: :delete, remote: true do %> <%= icon "bell" %> <span> <%= t("follows.destroy.button", scope: "decidim") %> </span> <% end %> <% else %> <%= button_to decidim.follow_path, class: "button secondary hollow expanded small button--icon follow-button", params: { follow: { followable_gid: followable.to_sgid.to_s }}, data: { disable: true }, remote: true do %> <%= icon "bell" %> <span> <%= t("follows.create.button", scope: "decidim") %> </span> <% end %> <% end %> </div> <% end %>
Version data entries
18 entries across 18 versions & 2 rubygems