2007-03-12 20:59:02 +03:00
|
|
|
<h2><%= l(:label_home) %></h2>
|
|
|
|
|
|
|
|
<div class="splitcontentleft">
|
2007-08-17 15:32:58 +04:00
|
|
|
<%= textilizable Setting.welcome_text %>
|
2007-11-06 01:22:51 +03:00
|
|
|
<% if @news.any? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<div class="box">
|
2006-07-29 23:54:22 +04:00
|
|
|
<h3><%=l(:label_news_latest)%></h3>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= render :partial => 'news/news', :collection => @news %>
|
2007-11-23 21:27:26 +03:00
|
|
|
<%= link_to l(:label_news_view_all), :controller => 'news' %>
|
2007-11-06 01:22:51 +03:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2009-04-25 01:25:10 +04:00
|
|
|
<%= call_hook(:view_welcome_index_left, :projects => @projects) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
2008-05-01 17:01:23 +04:00
|
|
|
<% if @projects.any? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<div class="box">
|
|
|
|
<h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
|
2006-06-28 22:11:03 +04:00
|
|
|
<ul>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% for project in @projects %>
|
|
|
|
<li>
|
2008-07-02 21:27:16 +04:00
|
|
|
<%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
|
2008-01-20 21:37:51 +03:00
|
|
|
<%= textilizable project.short_description, :project => project %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2008-05-01 17:01:23 +04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2009-04-25 01:25:10 +04:00
|
|
|
<%= call_hook(:view_welcome_index_right, :projects => @projects) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
2008-03-11 22:33:38 +03:00
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
|
|
|
:title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
|
|
|
|
:title => "#{Setting.app_title}: #{l(:label_activity)}") %>
|
2007-08-16 15:01:00 +04:00
|
|
|
<% end %>
|