Defect #6435 ยป 6435-fix_links_to_wikipages_with_version-sharing.diff
| app/views/projects/settings/_versions.rhtml (working copy) | ||
|---|---|---|
|
<th><%= l(:field_description) %></th>
|
||
|
<th><%= l(:field_status) %></th>
|
||
|
<th><%= l(:field_sharing) %></th>
|
||
|
<th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th>
|
||
|
<th><%= l(:label_wiki_page) %></th>
|
||
|
<th style="width:15%"></th>
|
||
|
</tr></thead>
|
||
|
<tbody>
|
||
| ... | ... | |
|
<td class="description"><%=h version.description %></td>
|
||
|
<td class="status"><%= l("version_status_#{version.status}") %></td>
|
||
|
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
|
||
|
<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>
|
||
|
<td>
|
||
|
<% if version.project == @project %>
|
||
|
<%= 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? %>
|
||
|
<% else %>
|
||
|
<%= link_to(h(version.wiki_page_title), :controller => 'wiki', :id => version.project, :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || version.project.wiki.nil? %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
<td class="buttons">
|
||
|
<% if version.project == @project %>
|
||
|
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
|
||
|
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version}, :class => 'icon icon-edit' %>
|
||
|
<%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end; reset_cycle %>
|
||
|
</tbody>
|
||