@@ -6,7 +6,7 | |||
|
6 | 6 | <th><%= l(:field_description) %></th> |
|
7 | 7 | <th><%= l(:field_status) %></th> |
|
8 | 8 | <th><%= l(:field_sharing) %></th> |
|
9 |
<th><%= l(:label_wiki_page) |
|
|
9 | <th><%= l(:label_wiki_page) %></th> | |
|
10 | 10 | <th style="width:15%"></th> |
|
11 | 11 | </tr></thead> |
|
12 | 12 | <tbody> |
@@ -17,7 +17,7 | |||
|
17 | 17 | <td class="description"><%=h version.description %></td> |
|
18 | 18 | <td class="status"><%= l("version_status_#{version.status}") %></td> |
|
19 | 19 | <td class="sharing"><%=h format_version_sharing(version.sharing) %></td> |
|
20 | <td><%= link_to(h(version.wiki_page_title), :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %></td> | |
|
20 | <td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'index', :id => version.project, :page => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td> | |
|
21 | 21 | <td class="buttons"> |
|
22 | 22 | <% if version.project == @project %> |
|
23 | 23 | <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> |
@@ -1,5 +1,6 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %> |
|
3 | <%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :id => @version.project, :page => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %> | |
|
3 | 4 | <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %> |
|
4 | 5 | </div> |
|
5 | 6 |
General Comments 0
You need to be logged in to leave comments.
Login now