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:
parent
703d8a4782
commit
47b162488c
@ -20,7 +20,6 @@ class WelcomeController < ApplicationController
|
||||
|
||||
def index
|
||||
@news = News.latest User.current
|
||||
@projects = Project.latest User.current
|
||||
end
|
||||
|
||||
def robots
|
||||
|
||||
@ -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 %>
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user