To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / _mature.html.erb @ 1238:90a0ed1ca8cb
History | View | Annotate | Download (797 Bytes)
| 1 |
|
|---|---|
| 2 |
<ul>
|
| 3 |
|
| 4 |
<%
|
| 5 |
for project in mature_projects(5)
|
| 6 |
%>
|
| 7 |
|
| 8 |
<li class="busy"> |
| 9 |
<span class="title"> |
| 10 |
<% if !project.root? %>
|
| 11 |
<% project.ancestors.each do |p| %>
|
| 12 |
<%= h(p) %> » |
| 13 |
<% end %>
|
| 14 |
<% end %>
|
| 15 |
<%= link_to_project project %>
|
| 16 |
</span>
|
| 17 |
<% if !project.is_public? %>
|
| 18 |
<span class="private"><%= l(:field_is_private) %></span> |
| 19 |
<% end %>
|
| 20 |
<span class='managers'> |
| 21 |
<%
|
| 22 |
u = project.users_by_role
|
| 23 |
if ! u.empty? %>
|
| 24 |
<%=
|
| 25 |
mgmt_roles = u.keys.select{ |r| r.allowed_to?(:edit_project) }
|
| 26 |
managers = mgmt_roles.map{ |r| u[r] }.flatten.sort.uniq
|
| 27 |
managers.map{ |m| m.name }.join(', ')
|
| 28 |
%><% |
| 29 |
end
|
| 30 |
%>
|
| 31 |
</span>
|
| 32 |
|
| 33 |
<%= render_project_short_description project %>
|
| 34 |
</li>
|
| 35 |
|
| 36 |
<% end %>
|
| 37 |
</ul>
|
| 38 |
|