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 @ 1592:72d9219f2f19
History | View | Annotate | Download (804 Bytes)
| 1 | 1207:d6d53a77f058 | chris | |
|---|---|---|---|
| 2 | <ul>
|
||
| 3 | |||
| 4 | <%
|
||
| 5 | 1501:467282ce64a4 | Chris | for project in varied_mature_projects(7)
|
| 6 | 1207:d6d53a77f058 | chris | %>
|
| 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>
|