Revision 1007:3e52bc15dd67 app/views/projects
| app/views/projects/_latest.html.erb | ||
|---|---|---|
| 1 | 1 |
<ul> |
| 2 |
<% for project in @projects %> |
|
| 3 |
<% @project = project %> |
|
| 2 |
<% for project in Project.latest(User.current) %> |
|
| 4 | 3 |
<li class="latest"> |
| 5 | 4 |
<span class="title"> |
| 6 | 5 |
<% if !project.root? %> |
| ... | ... | |
| 17 | 16 |
<%= render_project_short_description project %> |
| 18 | 17 |
</li> |
| 19 | 18 |
<% end %> |
| 20 |
<% @project = nil %> |
|
| 21 | 19 |
</ul> |
| app/views/projects/browse.html.erb | ||
|---|---|---|
| 1 |
|
|
| 2 |
<h2><%= l(:label_browse) %></h2> |
|
| 3 |
|
|
| 4 |
<div class="splitcontentleft"> |
|
| 5 |
<div class="projects box"> |
|
| 6 |
<h3><%=l(:label_project_latest)%></h3> |
|
| 7 |
<%= render :partial => 'projects/latest' %> |
|
| 8 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 9 |
</div> |
|
| 10 |
</div> |
|
| 11 |
<div class="splitcontentleft"> |
|
| 12 |
<div class="projects box"> |
|
| 13 |
<h3><%=l(:label_project_tags_all)%></h3> |
|
| 14 |
<%= render :partial => 'projects/tagcloud' %> |
|
| 15 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 16 |
</div> |
|
| 17 |
<div class="projects box"> |
|
| 18 |
<h3><%=l(:label_projects_busy)%></h3> |
|
| 19 |
<%= render :partial => 'activities/busy' %> |
|
| 20 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 21 |
</div> |
|
| 22 |
</div> |
|
Also available in: Unified diff