Project

General

Profile

Patch #29184 » diff.patch

Mizuki ISHIKAWA, 2018-07-04 10:08

View differences:

app/controllers/welcome_controller.rb
16 16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 17

  
18 18
class WelcomeController < ApplicationController
19
  self.main_menu = false
19
  menu_item :home
20 20

  
21 21
  def index
22 22
    @news = News.latest User.current
lib/redmine.rb
201 201
end
202 202

  
203 203
Redmine::MenuManager.map :application_menu do |menu|
204
  menu.push :home, :home_path
204 205
  menu.push :projects, {:controller => 'projects', :action => 'index'},
205 206
    :permission => nil,
206 207
    :caption => :label_project_plural
test/functional/welcome_controller_test.rb
29 29
    get :index
30 30
    assert_response :success
31 31
    assert_select 'h3', :text => 'Latest news'
32
    assert_select '#main-menu' do
33
      assert_select 'a.home.selected', 1
34
    end
32 35
  end
33 36

  
34 37
  def test_browser_language
(1-1/3)