Project

General

Profile

Patch #5899 » 5899-show-gravatar.patch

Go MAEDA, 2019-05-12 18:30

View differences:

app/views/users/edit.html.erb
5 5
<%= delete_link user_path(@user) if User.current != @user %>
6 6
</div>
7 7

  
8
<%= title [l(:label_user_plural), users_path], @user.login %>
8
<%=
9
  page_title = title [l(:label_user_plural), users_path], @user.login
10
  page_title.insert(page_title.rindex(' ') + 1, avatar(@user, :size => "24"))
11
%>
9 12

  
10 13
<%= render_tabs user_settings_tabs %>
test/functional/users_controller_test.rb
420 420

  
421 421

  
422 422
  def test_edit
423
    get :edit, :params => {:id => 2}
423
    with_settings :gravatar_enabled => '1' do
424
      get :edit, :params => {:id => 2}
425
    end
424 426
    assert_response :success
427
    assert_select 'h2>a+img.gravatar'
425 428
    assert_select 'input[name=?][value=?]', 'user[login]', 'jsmith'
426 429
  end
427 430

  
(4-4/4)