##// END OF EJS Templates
Fix links to activity pages broken with r4047. #6392...
Jean-Baptiste Barth -
r3978:0d967c057276
parent child
Show More
@@ -0,0 +1,26
1 <div class="contextual">
2 <%= watcher_tag(@wiki, User.current) %>
3 </div>
4
5 <h2><%= l(:label_index_by_title) %></h2>
6
7 <% if @pages.empty? %>
8 <p class="nodata"><%= l(:label_no_data) %></p>
9 <% end %>
10
11 <%= render_page_hierarchy(@pages_by_parent_id) %>
12
13 <% content_for :sidebar do %>
14 <%= render :partial => 'sidebar' %>
15 <% end %>
16
17 <% unless @pages.empty? %>
18 <% other_formats_links do |f| %>
19 <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
20 <%= f.link_to('HTML', :url => {:action => 'special', :page => 'export'}) if User.current.allowed_to?(:export_wiki_pages, @project) %>
21 <% end %>
22 <% end %>
23
24 <% content_for :header_tags do %>
25 <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
26 <% end %>
@@ -326,7 +326,7 module ApplicationHelper
326 def time_tag(time)
326 def time_tag(time)
327 text = distance_of_time_in_words(Time.now, time)
327 text = distance_of_time_in_words(Time.now, time)
328 if @project
328 if @project
329 link_to(text, {:controller => 'projects', :action => 'activity', :id => @project, :from => time.to_date}, :title => format_time(time))
329 link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => time.to_date}, :title => format_time(time))
330 else
330 else
331 content_tag('acronym', text, :title => format_time(time))
331 content_tag('acronym', text, :title => format_time(time))
332 end
332 end
@@ -16,11 +16,11
16
16
17 <% unless @pages.empty? %>
17 <% unless @pages.empty? %>
18 <% other_formats_links do |f| %>
18 <% other_formats_links do |f| %>
19 <%= f.link_to 'Atom', :url => {:controller => 'projects', :action => 'activity', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
19 <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
20 <%= f.link_to('HTML', :url => {:action => 'special', :page => 'export'}) if User.current.allowed_to?(:export_wiki_pages, @project) %>
20 <%= f.link_to('HTML', :url => {:action => 'special', :page => 'export'}) if User.current.allowed_to?(:export_wiki_pages, @project) %>
21 <% end %>
21 <% end %>
22 <% end %>
22 <% end %>
23
23
24 <% content_for :header_tags do %>
24 <% content_for :header_tags do %>
25 <%= auto_discovery_link_tag(:atom, :controller => 'projects', :action => 'activity', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
25 <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
26 <% end %>
26 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now