From 1cbda335646ab2d8597ba5f7d61c98916998328a Mon Sep 17 00:00:00 2001 From: Tommy Jans Date: Sat, 2 May 2015 14:57:30 +0200 Subject: [PATCH] osc15 ruby workshop fixing issue #650 --- app/views/users/edit.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 11bd6ab4..3c33f72a 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -8,7 +8,10 @@ = semantic_form_for(@user, url: user_path(@user.id)) do |f| = f.input :name, as: :string = f.input :nickname, as: :string - = link_to 'Change your avatar here', 'https://secure.gravatar.com' + .control-label + = "Avatar" + = image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", :alt => '') + = link_to 'Change your avatar here', 'https://gravatar.com' = f.input :affiliation, as: :string, hint: 'This could be a company, a user group, or nothing at all.' = f.input :biography, input_html: { rows: 5, 'onkeyup' => "word_count(this, 'biography-count', 150)" }