summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugust Lilleaas <augustlilleaas@gmail.com>2009-06-16 15:59:53 +0200
committerAugust Lilleaas <augustlilleaas@gmail.com>2009-06-16 15:59:53 +0200
commit6911ab39ab11382abbd4600807d735bca7fff26e (patch)
treea54f9741b7326392039ea659cf061b8a3fe9ac97
parentd8933042958c324ddd673c04a58bdce2a43795a4 (diff)
downloadgitorious-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.rb11
-rwxr-xr-xpublic/images/icon_avatar_mask.pngbin462 -> 321 bytes
-rwxr-xr-xpublic/images/icon_default.pngbin486 -> 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
index a7118a9..1b41d53 100755
--- a/public/images/icon_avatar_mask.png
+++ b/public/images/icon_avatar_mask.png
Binary files differ
diff --git a/public/images/icon_default.png b/public/images/icon_default.png
index 56c854e..c24076b 100755
--- a/public/images/icon_default.png
+++ b/public/images/icon_default.png
Binary files differ