Project

General

Profile

Feature #4210 » show_sub_project_desc_for_0.8.5.diff

RedminePro Yang, 2009-11-13 15:49

View differences:

app/views/projects/list.rhtml (working copy)
11 11

  
12 12
<% if @project_tree[project].any? %>
13 13
    <p><%= l(:label_subproject_plural) %>:
14
    <%= @project_tree[project].sort.collect {|subproject| 
15
       link_to(h(subproject.name), {:action => 'show', :id => subproject}, :class => (User.current.member_of?(subproject) ? "icon icon-fav" : ""))}.join(', ') %></p>
14
	<ul>
15
    <% @project_tree[project].sort.each  do |subproject| %>
16
      <li><%=link_to(h(subproject.name), {:action => 'show', :id => subproject}, 
17
		:class =>(User.current.member_of?(subproject) ? "icon icon-fav" : "")) %> 
18
		- <%= subproject.short_description %>
19
	<% end %>	
20
	</ul>
21
	</p>
16 22
<% end %>
17 23
<% end %>
18 24

  
(1-1/2)