|
1 |
|
| 1 |
2 |
<% if not Setting.notifications_text.empty? %>
|
| 2 |
|
<div class="notifications flash error">
|
| 3 |
|
<%= textilizable Setting.notifications_text %>
|
|
3 |
<div class="notifications flash newsalert">
|
|
4 |
<%= textilizable Setting.notifications_text %>
|
| 4 |
5 |
</div>
|
| 5 |
6 |
<% end %>
|
| 6 |
7 |
|
| 7 |
|
<h2><%= l(:label_home_heading) %></h2>
|
|
8 |
<div id="welcomepage">
|
| 8 |
9 |
|
| 9 |
|
<div class="splitcontentleft">
|
| 10 |
|
<%= textilizable Setting.welcome_text %>
|
|
10 |
<%= textilizable Setting.welcome_text %>
|
|
11 |
|
|
12 |
</div>
|
| 11 |
13 |
|
| 12 |
|
<%= call_hook(:view_welcome_index_left, :projects => @projects) %>
|
| 13 |
|
</div>
|
| 14 |
|
|
| 15 |
|
<div class="splitcontentright">
|
| 16 |
|
<% if @site_news.any? %>
|
| 17 |
|
<div class="news box">
|
| 18 |
|
<h3><%=l(:label_news_site_latest)%></h3>
|
| 19 |
|
<%= render :partial => 'news/news', :locals => { :project => @site_project }, :collection => @site_news %>
|
| 20 |
|
<%= link_to l(:label_news_more), { :controller => 'projects', :action => @site_project.identifier, :id => 'news' } %>
|
| 21 |
|
</div>
|
| 22 |
|
<% end %>
|
| 23 |
|
<div class="projects box">
|
| 24 |
|
<h3><%=l(:label_project_latest)%></h3>
|
| 25 |
|
<%= render :partial => 'projects/latest' %>
|
| 26 |
|
<%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %>
|
| 27 |
|
</div>
|
| 28 |
|
<%= call_hook(:view_welcome_index_right, :projects => @projects) %>
|
| 29 |
|
</div>
|
| 30 |
|
|
| 31 |
14 |
<% content_for :header_tags do %>
|
| 32 |
15 |
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
| 33 |
16 |
:title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
|