1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Removed "Latest projects" from home page (#21148).

git-svn-id: http://svn.redmine.org/redmine/trunk@14877 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-11-14 10:11:15 +00:00
parent 703d8a4782
commit 47b162488c
3 changed files with 5 additions and 24 deletions

View File

@ -20,7 +20,6 @@ class WelcomeController < ApplicationController
def index
@news = News.latest User.current
@projects = Project.latest User.current
end
def robots

View File

@ -4,6 +4,10 @@
<div class="wiki">
<%= textilizable Setting.welcome_text %>
</div>
<%= call_hook(:view_welcome_index_left) %>
</div>
<div class="splitcontentright">
<% if @news.any? %>
<div class="news box">
<h3><%=l(:label_news_latest)%></h3>
@ -11,28 +15,7 @@
<%= link_to l(:label_news_view_all), :controller => 'news' %>
</div>
<% end %>
<%= call_hook(:view_welcome_index_left, :projects => @projects) %>
</div>
<div class="splitcontentright">
<% if @projects.any? %>
<div class="projects box">
<h3><%=l(:label_project_latest)%></h3>
<ul>
<% for project in @projects %>
<% @project = project %>
<li>
<%= link_to_project project %> (<%= format_time(project.created_on) %>)
<div class="wiki">
<%= textilizable project.short_description, :project => project %>
</div>
</li>
<% end %>
<% @project = nil %>
</ul>
</div>
<% end %>
<%= call_hook(:view_welcome_index_right, :projects => @projects) %>
<%= call_hook(:view_welcome_index_right) %>
</div>
<% content_for :header_tags do %>

View File

@ -30,7 +30,6 @@ class WelcomeControllerTest < ActionController::TestCase
assert_response :success
assert_template 'index'
assert_not_nil assigns(:news)
assert_not_nil assigns(:projects)
assert !assigns(:projects).include?(Project.where(:is_public => false).first)
end