Patch #6440 » _wiki.rhtml
1 |
<% User.current.custom_values.each do |custom_value| %> |
---|---|
2 |
<% if !custom_value.value.blank? && custom_value.custom_field.name=="wiki" %> |
3 |
<% page = Wiki.find_page(custom_value) %> |
4 |
|
5 |
<div class="contextual"> |
6 |
<%= link_to(l(:button_edit), {:action => 'edit', :page => page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> |
7 |
</div>
|
8 |
|
9 |
<%= render(:partial => "wiki/content", :locals => {:content => page.content}) %> |
10 |
<p><%= link_to 'Edit', url_for(:controller => 'wiki', :action => 'index', :id => page.project, :page => page.title) %></p> |
11 |
<% end %> |
12 |
<% end %> |