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
This commit is contained in:
Jean-Philippe Lang committed 2009-05-25 19:02:28 +00:00
1 parent 9c630cc2b7
commit 85ce903cfa
7 files changed
+20 -5

No files matched your search

+1
View File
@@ -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 %>
+4
View File
@@ -1,3 +1,7 @@
<div class="contextual">
<%= watcher_tag(@wiki, User.current) %>
</div>
<h2><%= l(:label_index_by_date) %></h2>
<% if @pages.empty? %>
+4
View File
@@ -1,3 +1,7 @@
<div class="contextual">
<%= watcher_tag(@wiki, User.current) %>
</div>
<h2><%= l(:label_index_by_title) %></h2>
<% if @pages.empty? %>