index.rhtml
39 lines
| 1.4 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <h2><%= l(:label_home) %></h2> | ||
<div class="splitcontentleft"> | ||||
|
r646 | <%= textilizable Setting.welcome_text %> | ||
|
r875 | <% if @news.any? %> | ||
|
r3065 | <div class="news box"> | ||
|
r12 | <h3><%=l(:label_news_latest)%></h3> | ||
|
r330 | <%= render :partial => 'news/news', :collection => @news %> | ||
|
r911 | <%= link_to l(:label_news_view_all), :controller => 'news' %> | ||
|
r875 | </div> | ||
<% end %> | ||||
|
r2595 | <%= call_hook(:view_welcome_index_left, :projects => @projects) %> | ||
|
r330 | </div> | ||
<div class="splitcontentright"> | ||||
|
r1385 | <% if @projects.any? %> | ||
|
r3065 | <div class="projects box"> | ||
<h3><%=l(:label_project_latest)%></h3> | ||||
|
r2 | <ul> | ||
|
r330 | <% for project in @projects %> | ||
|
r3710 | <% @project = project %> | ||
|
r330 | <li> | ||
|
r3810 | <%= link_to_project project %> (<%= format_time(project.created_on) %>) | ||
|
r1074 | <%= textilizable project.short_description, :project => project %> | ||
|
r330 | </li> | ||
<% end %> | ||||
|
r3710 | <% @project = nil %> | ||
|
r330 | </ul> | ||
|
r1385 | </div> | ||
<% end %> | ||||
|
r2595 | <%= call_hook(:view_welcome_index_right, :projects => @projects) %> | ||
|
r330 | </div> | ||
<% content_for :header_tags do %> | ||||
|
r1213 | <%= 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)}") %> | ||||
|
r641 | <% end %> | ||