##// END OF EJS Templates
Added some new view hooks to the welcome page....
Eric Davis -
r2595:5ab582387ea7
parent child
Show More
@@ -1,35 +1,37
1 1 <h2><%= l(:label_home) %></h2>
2 2
3 3 <div class="splitcontentleft">
4 4 <%= textilizable Setting.welcome_text %>
5 5 <% if @news.any? %>
6 6 <div class="box">
7 7 <h3><%=l(:label_news_latest)%></h3>
8 8 <%= render :partial => 'news/news', :collection => @news %>
9 9 <%= link_to l(:label_news_view_all), :controller => 'news' %>
10 10 </div>
11 11 <% end %>
12 <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
12 13 </div>
13 14
14 15 <div class="splitcontentright">
15 16 <% if @projects.any? %>
16 17 <div class="box">
17 18 <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
18 19 <ul>
19 20 <% for project in @projects %>
20 21 <li>
21 22 <%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
22 23 <%= textilizable project.short_description, :project => project %>
23 24 </li>
24 25 <% end %>
25 26 </ul>
26 27 </div>
27 28 <% end %>
29 <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
28 30 </div>
29 31
30 32 <% content_for :header_tags do %>
31 33 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
32 34 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
33 35 <%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
34 36 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
35 37 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now