diff options
author | August Lilleaas <augustlilleaas@gmail.com> | 2009-06-16 15:59:53 +0200 |
---|---|---|
committer | August Lilleaas <augustlilleaas@gmail.com> | 2009-06-16 15:59:53 +0200 |
commit | 6911ab39ab11382abbd4600807d735bca7fff26e (patch) | |
tree | a54f9741b7326392039ea659cf061b8a3fe9ac97 | |
parent | d8933042958c324ddd673c04a58bdce2a43795a4 (diff) | |
download | gitorious-mainline-outdated-6911ab39ab11382abbd4600807d735bca7fff26e.zip gitorious-mainline-outdated-6911ab39ab11382abbd4600807d735bca7fff26e.tar.gz gitorious-mainline-outdated-6911ab39ab11382abbd4600807d735bca7fff26e.tar.bz2 |
Cleaning up the homepage avatar code. All avatars has the same look now, and we only have rounder corners, no inner shadow.
-rw-r--r-- | app/helpers/application_helper.rb | 11 | ||||
-rwxr-xr-x | public/images/icon_avatar_mask.png | bin | 462 -> 321 bytes | |||
-rwxr-xr-x | public/images/icon_default.png | bin | 486 -> 353 bytes |
3 files changed, 3 insertions, 8 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4e79557..8da066f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -410,7 +410,7 @@ module ApplicationHelper def project_summary_box(project) summary_box link_to(project.title, project), truncate(project.descriptions_first_paragraph, 80), - avatar_wrapper(default_avatar) + glossy_homepage_avatar(default_avatar) end def team_summary_box(team) @@ -437,7 +437,7 @@ module ApplicationHelper end def glossy_homepage_avatar(avatar) - avatar_wrapper(avatar + "<span></span>") + content_tag(:div, avatar + "<span></span>", :class => "glossy_avatar_wrapper") end def glossy_homepage_avatar_for_user(user) @@ -447,12 +447,7 @@ module ApplicationHelper def default_avatar image_tag("icon_default.png", :width => 30, :height => 30) end - - # This is pretty ugly, the 'avatar' helper should do this. But we need backwards compability. - def avatar_wrapper(avatar) - content_tag(:div, avatar, :class => "glossy_avatar_wrapper") - end - + def secure_login_url if SslRequirement.disable_ssl_check? sessions_path diff --git a/public/images/icon_avatar_mask.png b/public/images/icon_avatar_mask.png Binary files differindex a7118a9..1b41d53 100755 --- a/public/images/icon_avatar_mask.png +++ b/public/images/icon_avatar_mask.png diff --git a/public/images/icon_default.png b/public/images/icon_default.png Binary files differindex 56c854e..c24076b 100755 --- a/public/images/icon_default.png +++ b/public/images/icon_default.png |