just kidding. totally going to namespace users

This commit is contained in:
Maxwell Salzberg
2011-07-29 18:37:46 -07:00
parent d407be036e
commit d55a21c458
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ module ApplicationHelper
opts[:class] ||= ""
opts[:class] << " self" if defined?(user_signed_in?) && user_signed_in? && current_user.person == person
if person.local?
"<a href='#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
"<a href=/u/'#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
#{h(person.name)}
</a>".html_safe
else
@@ -72,7 +72,7 @@ module ApplicationHelper
link_to person_image_tag(person, opts[:size]), person_photos_path(person)
else
if person.local?
"<a href='#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
"<a href='/u/#{person.diaspora_handle.split('@')[0]}' class='#{opts[:class]}'>
#{person_image_tag(person)}
</a>".html_safe
else

View File

@@ -154,7 +154,7 @@ Diaspora::Application.routes.draw do
get 'mobile/toggle', :to => 'home#toggle_mobile', :as => 'toggle_mobile'
get ':username' => 'people#show', :as => 'user_profile'
get '/u/:username' => 'people#show', :as => 'user_profile'
# Startpage
root :to => 'home#show'