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? %>
|
2009-12-17 21:52:28 +03:00
|
|
|
<div class="news 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? %>
|
2009-12-17 21:52:28 +03:00
|
|
|
<div class="projects box">
|
|
|
|
<h3><%=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 %>
|
2010-06-30 07:32:18 +04:00
|
|
|
<% @project = project %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li>
|
2010-08-08 11:07:20 +04:00
|
|
|
<%= link_to_project 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 %>
|
2010-06-30 07:32:18 +04:00
|
|
|
<% @project = nil %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</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)}") %>
|
2010-08-27 18:05:54 +04:00
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
2008-03-11 22:33:38 +03:00
|
|
|
:title => "#{Setting.app_title}: #{l(:label_activity)}") %>
|
2007-08-16 15:01:00 +04:00
|
|
|
<% end %>
|