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