Moved ProjectsController#list_news to NewsController#index.
[gitredmine.git] / app / views / welcome / index.rhtml
blobaf09eea935e1382e38b010656b50ed423a820215
1 <h2><%= l(:label_home) %></h2>
3 <div class="splitcontentleft">
4   <%= textilizable Setting.welcome_text %>
5   <% if @news.any? %>
6   <div class="box">
7         <h3><%=l(:label_news_latest)%></h3>
8                 <%= render :partial => 'news/news', :collection => @news %>
9                 <%= link_to l(:label_issue_view_all), :controller => 'news' %>
10   </div>
11   <% end %>
12 </div>
14 <div class="splitcontentright">
15         <div class="box">
16         <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
17                 <ul>
18                 <% for project in @projects %>
19                         <li>
20                         <%= link_to project.name, :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
21                         <%= textilizable project.description, :project => project %>
22                         </li>
23                 <% end %>
24                 </ul>
25         </div>  
26 </div>  
28 <% content_for :header_tags do %>
29 <%= auto_discovery_link_tag(:rss,  {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
30 <%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
31 <% end %>