Browse Source

Adds a delete link on the wiki index (#26579).

git-svn-id: http://svn.redmine.org/redmine/trunk@16916 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.0
Jean-Philippe Lang 6 years ago
parent
commit
2596653bed

+ 3
- 0
app/views/wiki/date_index.html.erb View File

<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
<% end %> <% end %>
<%= watcher_link(@wiki, User.current) %> <%= watcher_link(@wiki, User.current) %>
<% if User.current.allowed_to?(:manage_wiki, @project) %>
<%= link_to l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project}, :class => 'icon icon-del' %>
<% end %>
</div> </div>


<h2><%= l(:label_index_by_date) %></h2> <h2><%= l(:label_index_by_date) %></h2>

+ 3
- 0
app/views/wiki/index.html.erb View File

<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
<% end %> <% end %>
<%= watcher_link(@wiki, User.current) %> <%= watcher_link(@wiki, User.current) %>
<% if User.current.allowed_to?(:manage_wiki, @project) %>
<%= link_to l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project}, :class => 'icon icon-del' %>
<% end %>
</div> </div>


<h2><%= l(:label_index_by_title) %></h2> <h2><%= l(:label_index_by_title) %></h2>

+ 2
- 1
app/views/wikis/destroy.html.erb View File

<%= form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %> <%= form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %>
<%= hidden_field_tag "confirm", 1 %> <%= hidden_field_tag "confirm", 1 %>
<%= submit_tag l(:button_delete) %> <%= submit_tag l(:button_delete) %>
<%= link_to l(:button_cancel), settings_project_path(@project, :tab => 'wiki') %>
<%= link_to l(:button_cancel), :back %>
<% end %> <% end %>


Loading…
Cancel
Save