Commit 8a3bbbdb88b55fef8aafd5bf1c818670d26eb146
1 parent
7cd03836
Exists in
master
and in
4 other branches
clean app helper
* remove unused method * simplify gravatar_icon
Showing
1 changed file
with
1 additions
and
9 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -39,18 +39,10 @@ module ApplicationHelper | @@ -39,18 +39,10 @@ module ApplicationHelper | ||
39 | else | 39 | else |
40 | gravatar_url = request.ssl? ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url | 40 | gravatar_url = request.ssl? ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url |
41 | user_email.strip! | 41 | user_email.strip! |
42 | - sprintf(gravatar_url, {:hash => Digest::MD5.hexdigest(user_email.downcase), :email => URI.escape(user_email), :size => size}) | 42 | + sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size |
43 | end | 43 | end |
44 | end | 44 | end |
45 | 45 | ||
46 | - def request_protocol | ||
47 | - request.ssl? ? "https" : "http" | ||
48 | - end | ||
49 | - | ||
50 | - def web_app_url | ||
51 | - "#{request_protocol}://#{Gitlab.config.gitlab.host}/" | ||
52 | - end | ||
53 | - | ||
54 | def last_commit(project) | 46 | def last_commit(project) |
55 | if project.repo_exists? | 47 | if project.repo_exists? |
56 | time_ago_in_words(project.repository.commit.committed_date) + " ago" | 48 | time_ago_in_words(project.repository.commit.committed_date) + " ago" |