##// 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 <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="box">
6 <div class="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 </div>
13 </div>
13
14
14 <div class="splitcontentright">
15 <div class="splitcontentright">
15 <% if @projects.any? %>
16 <% if @projects.any? %>
16 <div class="box">
17 <div class="box">
17 <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
18 <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
18 <ul>
19 <ul>
19 <% for project in @projects %>
20 <% for project in @projects %>
20 <li>
21 <li>
21 <%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
22 <%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
22 <%= textilizable project.short_description, :project => project %>
23 <%= textilizable project.short_description, :project => project %>
23 </li>
24 </li>
24 <% end %>
25 <% end %>
25 </ul>
26 </ul>
26 </div>
27 </div>
27 <% end %>
28 <% end %>
29 <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
28 </div>
30 </div>
29
31
30 <% content_for :header_tags do %>
32 <% content_for :header_tags do %>
31 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
33 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
32 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
34 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
33 <%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
35 <%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
34 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
36 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
35 <% end %>
37 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now