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-06 01:22:51 +03:00
|
|
|
<%= link_to l(:label_issue_view_all), :controller => 'news' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
|
|
|
<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>
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= link_to project.name, :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
|
2007-08-17 15:21:58 +04:00
|
|
|
<%= textilizable project.description, :project => project %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
2007-08-16 15:01:00 +04:00
|
|
|
<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
|
|
|
|
<% end %>
|