@@ -1,40 +1,40 | |||||
1 | <h2><%= l(:label_home) %></h2> |
|
1 | <h2><%= l(:label_home) %></h2> | |
2 |
|
2 | |||
3 | <div class="splitcontentleft"> |
|
3 | <div class="splitcontentleft"> | |
4 | <%= textilizable Setting.welcome_text %> |
|
4 | <%= textilizable Setting.welcome_text %> | |
5 | <% if @news.any? %> |
|
5 | <% if @news.any? %> | |
6 | <div class="news box"> |
|
6 | <div class="news box"> | |
7 | <h3><%=l(:label_news_latest)%></h3> |
|
7 | <h3><%=l(:label_news_latest)%></h3> | |
8 | <%= render :partial => 'news/news', :collection => @news %> |
|
8 | <%= render :partial => 'news/news', :collection => @news %> | |
9 | <%= link_to l(:label_news_view_all), :controller => 'news' %> |
|
9 | <%= link_to l(:label_news_view_all), :controller => 'news' %> | |
10 | </div> |
|
10 | </div> | |
11 | <% end %> |
|
11 | <% end %> | |
12 | <%= call_hook(:view_welcome_index_left, :projects => @projects) %> |
|
12 | <%= call_hook(:view_welcome_index_left, :projects => @projects) %> | |
13 | </div> |
|
13 | </div> | |
14 |
|
14 | |||
15 | <div class="splitcontentright"> |
|
15 | <div class="splitcontentright"> | |
16 | <% if @projects.any? %> |
|
16 | <% if @projects.any? %> | |
17 | <div class="projects box"> |
|
17 | <div class="projects box"> | |
18 | <h3><%=l(:label_project_latest)%></h3> |
|
18 | <h3><%=l(:label_project_latest)%></h3> | |
19 | <ul> |
|
19 | <ul> | |
20 | <% for project in @projects %> |
|
20 | <% for project in @projects %> | |
21 | <% @project = project %> |
|
21 | <% @project = project %> | |
22 | <li> |
|
22 | <li> | |
23 | <%= link_to_project project %> (<%= format_time(project.created_on) %>) |
|
23 | <%= link_to_project project %> (<%= format_time(project.created_on) %>) | |
24 | <%= textilizable project.short_description, :project => project %> |
|
24 | <%= textilizable project.short_description, :project => project %> | |
25 | </li> |
|
25 | </li> | |
26 | <% end %> |
|
26 | <% end %> | |
27 | <% @project = nil %> |
|
27 | <% @project = nil %> | |
28 | </ul> |
|
28 | </ul> | |
29 | </div> |
|
29 | </div> | |
30 | <% end %> |
|
30 | <% end %> | |
31 | <%= call_hook(:view_welcome_index_right, :projects => @projects) %> |
|
31 | <%= call_hook(:view_welcome_index_right, :projects => @projects) %> | |
32 |
</div> |
|
32 | </div> | |
33 |
|
33 | |||
34 | <% content_for :header_tags do %> |
|
34 | <% content_for :header_tags do %> | |
35 | <%= stylesheet_link_tag 'scm' %> |
|
35 | <%= stylesheet_link_tag 'scm' %> | |
36 | <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, |
|
36 | <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, | |
37 | :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> |
|
37 | :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %> | |
38 | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, |
|
38 | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'}, | |
39 | :title => "#{Setting.app_title}: #{l(:label_activity)}") %> |
|
39 | :title => "#{Setting.app_title}: #{l(:label_activity)}") %> | |
40 | <% end %> |
|
40 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now