luisf@48
|
1 <% if not Setting.notifications_text.empty? %>
|
luisf@48
|
2 <div class="notifications flash error">
|
luisf@47
|
3 <%= textilizable Setting.notifications_text %>
|
luisf@48
|
4 </div>
|
luisf@48
|
5 <% end %>
|
luisf@47
|
6
|
Chris@95
|
7 <h2><%= l(:label_home_heading) %></h2>
|
Chris@0
|
8
|
Chris@0
|
9 <div class="splitcontentleft">
|
Chris@0
|
10 <%= textilizable Setting.welcome_text %>
|
luisf@42
|
11
|
Chris@0
|
12 <% if @news.any? %>
|
Chris@0
|
13 <div class="news box">
|
Chris@0
|
14 <h3><%=l(:label_news_latest)%></h3>
|
Chris@0
|
15 <%= render :partial => 'news/news', :collection => @news %>
|
Chris@0
|
16 <%= link_to l(:label_news_view_all), :controller => 'news' %>
|
Chris@0
|
17 </div>
|
Chris@0
|
18 <% end %>
|
Chris@0
|
19 <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
|
Chris@0
|
20 </div>
|
Chris@0
|
21
|
Chris@0
|
22 <div class="splitcontentright">
|
Chris@113
|
23 <% if not @tipsoftheday.empty? %>
|
Chris@113
|
24 <div class="newsoftheday box">
|
Chris@113
|
25 <h3><%=l(:label_tipoftheday)%></h3>
|
Chris@113
|
26 <%= textilizable @tipsoftheday %>
|
Chris@113
|
27 </div>
|
Chris@113
|
28 <% end %>
|
Chris@113
|
29
|
Chris@0
|
30 <% if @projects.any? %>
|
Chris@0
|
31 <div class="projects box">
|
Chris@0
|
32 <h3><%=l(:label_project_latest)%></h3>
|
Chris@0
|
33 <ul>
|
Chris@0
|
34 <% for project in @projects %>
|
Chris@0
|
35 <% @project = project %>
|
Chris@0
|
36 <li>
|
Chris@14
|
37 <%= link_to_project project %> (<%= format_time(project.created_on) %>)
|
Chris@0
|
38 <%= textilizable project.short_description, :project => project %>
|
Chris@0
|
39 </li>
|
Chris@0
|
40 <% end %>
|
Chris@0
|
41 <% @project = nil %>
|
Chris@0
|
42 </ul>
|
Chris@0
|
43 </div>
|
Chris@0
|
44 <% end %>
|
Chris@0
|
45 <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
|
Chris@0
|
46 </div>
|
Chris@0
|
47
|
Chris@0
|
48 <% content_for :header_tags do %>
|
Chris@0
|
49 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
Chris@0
|
50 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
|
chris@22
|
51 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
Chris@0
|
52 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
|
Chris@0
|
53 <% end %>
|