forked from thiyagarajan/BBYIDX
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues around subscription HTML and IE 7.
- Loading branch information
1 parent
d025622
commit 0336ec6
Showing
2 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
-if logged_in? | ||
%li.subscription | ||
-if @idea.inventor == current_user && current_user.notify_on_comments? | ||
You will receive email notifications for new comments on your idea. | ||
= link_to 'Account settings', edit_user_path | ||
-elsif current_user.subscribed_ideas.include?(@idea) | ||
You will receive email notifications for new comments on this idea. | ||
= link_to_remote 'Stop watching', | ||
:url => unsubscribe_idea_path(@idea), | ||
:update => 'subscription', | ||
:complete => visual_effect(:highlight, 'subscription', :duration => 0.8) | ||
-else | ||
= link_to_remote 'Watch this idea', | ||
:url => subscribe_idea_path(@idea), | ||
:update => 'subscription', | ||
:complete => visual_effect(:highlight, 'subscription', :duration => 0.8) | ||
-if @idea.inventor == current_user && current_user.notify_on_comments? | ||
You will receive email notifications for new comments on your idea. | ||
= link_to 'Account settings', edit_user_path | ||
-elsif current_user.subscribed_ideas.include?(@idea) | ||
You will receive email notifications for new comments on this idea. | ||
= link_to_remote 'Stop watching', | ||
:url => unsubscribe_idea_path(@idea), | ||
:update => 'subscription', | ||
:complete => visual_effect(:highlight, 'subscription', :duration => 0.8) | ||
-else | ||
= link_to_remote 'Watch this idea', | ||
:url => subscribe_idea_path(@idea), | ||
:update => 'subscription', | ||
:complete => visual_effect(:highlight, 'subscription', :duration => 0.8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters