Sha256: 6c3fdb32fd4cf829e9b1a11ebb8dc6d8422b26bf2e7361ad51874f2be5a2830f
Contents?: true
Size: 596 Bytes
Versions: 29
Compression:
Stored size: 596 Bytes
Contents
- class_name = entity.class.name.downcase - id_prefix = "#{class_name}_#{entity.id}" - subscribed = entity.subscribed_users.include?(current_user.id) - if subscribed - link_text, action = [t(:disable_email_subscriptions), "unsubscribe"] - else - link_text, action = [t(:subscribe_via_email), "subscribe"] %div{:id => "#{id_prefix}_subscribe", :class => "comment_subscriptions"} = image_tag "notifications.png", :title => t(:notifications_tooltip) = link_to link_text, url_for(:controller => class_name.pluralize, :action => action, :id => entity.id), :remote => true, :method => :post
Version data entries
29 entries across 29 versions & 2 rubygems