From 85ce903cfa5f13eadef140f82466b258756a44eb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 25 May 2009 19:02:28 +0000 Subject: 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 --- app/views/wiki/show.rhtml | 1 + app/views/wiki/special_date_index.rhtml | 4 ++++ app/views/wiki/special_page_index.rhtml | 4 ++++ 3 files changed, 9 insertions(+) (limited to 'app/views') 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 @@
<% 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 @@ +
+<%= watcher_tag(@wiki, User.current) %> +
+

<%= l(:label_index_by_date) %>

<% 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 @@ +
+<%= watcher_tag(@wiki, User.current) %> +
+

<%= l(:label_index_by_title) %>

<% if @pages.empty? %> -- cgit v1.2.3 elected'>master Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
blob: 3095976036cc45ca3650d6a8d6ee38cfb1f89553 (plain)
1
2
3