-icon, text = *identity.icon_and_text
-imgpath = "/images/sprites/user_#{icon}.png"
-plain ||= false
-no_link, no_profile = (plain or not identity.url), (plain or not identity.profile_url)
%span.identity<
	=succeed link_to_unless no_link, text, identity.url, {:rel => 'nofollow'} do
		-if FileTest.exists?("#{RAILS_ROOT}/public#{imgpath}")
			=link_to_unless no_profile, image_tag(imgpath), identity.profile_url, {:rel => 'nofollow'}
-if has_role? :admin and identity.user != current_user
	=link_to "(edit)", identity.user

-icon, text = *identity.icon_and_text
-imgpath = "/images/sprites/user_#{icon}.png"
-plain ||= false
-no_link, no_profile = (plain or not identity.url), (plain or not identity.profile_url)
%span.identity<
	=succeed link_to_unless no_link, text, identity.url, {:rel => 'nofollow'} do
		-if FileTest.exists?("#{RAILS_ROOT}/public#{imgpath}")
			=link_to_unless no_profile, image_tag(imgpath), identity.profile_url, {:rel => 'nofollow'}
-if has_role? :admin and identity.user != current_user and not current_page? :controller => :users, :action => :index
	=link_to "(edit)", identity.user

Remove redundant user edit link.
Remove redundant user edit link.
