Project

General

Profile

Patch #6440 » _wiki.rhtml

Sergei Danilov, 2010-09-20 15:35

 
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
		<%= render(:partial => "wiki/content", :locals => {:content => page.content}) %>
6
		<p><%= link_to 'Edit', url_for(:controller => 'wiki', :action => 'index', :id => page.project, :page => page.title) %></p>
7
	<% end %>
8
<% end %>
(3-3/3)