Revision 1025:02ee54197879 app/views/projects
| app/views/projects/_latest.html.erb | ||
|---|---|---|
| 1 |
<ul> |
|
| 2 |
<% for project in Project.latest(User.current) %> |
|
| 3 |
<li class="latest"> |
|
| 4 |
<span class="title"> |
|
| 5 |
<% if !project.root? %> |
|
| 6 |
<% project.ancestors.each do |p| %> |
|
| 7 |
<%= h(p) %> » |
|
| 8 |
<% end %> |
|
| 9 |
<% end %> |
|
| 10 |
<%= link_to_project project %> |
|
| 11 |
</span> |
|
| 12 |
<% if !project.is_public? %> |
|
| 13 |
<span class="private"><%= l(:field_is_private) %></span> |
|
| 14 |
<% end %> |
|
| 15 |
<span class="time"><%= format_time(project.created_on)%></span> |
|
| 16 |
<%= render_project_short_description project %> |
|
| 17 |
</li> |
|
| 18 |
<% end %> |
|
| 19 |
</ul> |
|
| app/views/projects/explore.html.erb | ||
|---|---|---|
| 1 |
|
|
| 2 |
<h2><%= l(:label_explore_projects) %></h2> |
|
| 3 |
|
|
| 4 |
<div class="tags box"> |
|
| 5 |
<h3><%=l(:label_project_tags_all)%></h3> |
|
| 6 |
<%= render :partial => 'projects/tagcloud' %> |
|
| 7 |
</div> |
|
| 8 |
<div class="splitcontentleft"> |
|
| 9 |
<div class="institutions box"> |
|
| 10 |
<h3><%=l(:label_institutions_busy)%></h3> |
|
| 11 |
<%= render :partial => 'activities/busy_institution' %> |
|
| 12 |
</div> |
|
| 13 |
<div class="projects box"> |
|
| 14 |
<h3><%=l(:label_project_latest)%></h3> |
|
| 15 |
<%= render :partial => 'projects/latest' %> |
|
| 16 |
</div> |
|
| 17 |
</div> |
|
| 18 |
<div class="splitcontentright"> |
|
| 19 |
<div class="projects box"> |
|
| 20 |
<h3><%=l(:label_projects_busy)%></h3> |
|
| 21 |
<%= render :partial => 'activities/busy' %> |
|
| 22 |
</div> |
|
| 23 |
</div> |
|
Also available in: Unified diff