diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-25 19:02:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-25 19:02:28 +0000 |
commit | 85ce903cfa5f13eadef140f82466b258756a44eb (patch) | |
tree | 067b6995cc37076d87769295f2c4b5700bee6570 /app/views | |
parent | 9c630cc2b72336aed6fa0957b68f1cb598116bf4 (diff) | |
download | redmine-85ce903cfa5f13eadef140f82466b258756a44eb.tar.gz redmine-85ce903cfa5f13eadef140f82466b258756a44eb.zip |
Ability to watch a wiki or a single wiki page (#413).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2765 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wiki/show.rhtml | 1 | ||||
-rw-r--r-- | app/views/wiki/special_date_index.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/special_page_index.rhtml | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 033c59160..0ae8c10dc 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -1,6 +1,7 @@ <div class="contextual"> <% if @editable %> <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> +<%= watcher_tag(@page, User.current) %> <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :page => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :page => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> diff --git a/app/views/wiki/special_date_index.rhtml b/app/views/wiki/special_date_index.rhtml index 008f89293..6bc2d56c2 100644 --- a/app/views/wiki/special_date_index.rhtml +++ b/app/views/wiki/special_date_index.rhtml @@ -1,3 +1,7 @@ +<div class="contextual"> +<%= watcher_tag(@wiki, User.current) %> +</div> + <h2><%= l(:label_index_by_date) %></h2> <% if @pages.empty? %> diff --git a/app/views/wiki/special_page_index.rhtml b/app/views/wiki/special_page_index.rhtml index 5547f5b1c..a0670da37 100644 --- a/app/views/wiki/special_page_index.rhtml +++ b/app/views/wiki/special_page_index.rhtml @@ -1,3 +1,7 @@ +<div class="contextual"> +<%= watcher_tag(@wiki, User.current) %> +</div> + <h2><%= l(:label_index_by_title) %></h2> <% if @pages.empty? %> |