diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 12:08:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 12:08:31 +0000 |
commit | 2fb84af3e91dc17aa0f84a8fa0e02cabe2ac712c (patch) | |
tree | 5d90bc5dec82cac5531dd7b14c65f9d35ee64dec /app/views | |
parent | 907f906ec6e0fb60cbbd4abe7b579c59d78405d4 (diff) | |
download | redmine-2fb84af3e91dc17aa0f84a8fa0e02cabe2ac712c.tar.gz redmine-2fb84af3e91dc17aa0f84a8fa0e02cabe2ac712c.zip |
Added "Watch" functionality on issues. It allows users to receive mail notifications about issue changes.
For now, it's only usefull for users who are not members of the project, since members receive notifications for each issue (this behaviour will change).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@453 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/issues/show.rhtml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index a5569c9d4..3c1ac0e2e 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -53,6 +53,13 @@ end %> <div class="contextual"> <%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %> <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> +<% if @logged_in_user %> + <% if @issue.watched_by?(@logged_in_user) %> +<%= link_to l(:button_unwatch), {:controller => 'watchers', :action => 'remove', :issue_id => @issue}, :class => 'icon icon-fav' %> + <% else %> +<%= link_to l(:button_watch), {:controller => 'watchers', :action => 'add', :issue_id => @issue}, :class => 'icon icon-fav' %> + <% end %> +<% end %> <%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %> <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> </div> |