Skip to content
Extraits de code Groupes Projets
Valider 32434350 rédigé par ilya's avatar ilya
Parcourir les fichiers

the album create doesn't crash the app

parent 00c80ed6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -14,13 +14,4 @@ module AlbumsHelper
'Your Albums'
end
end
def album_person(album)
person = album.person
if album.person_id == current_user.person.id
link_to "you", user_path(current_user)
else
link_to person.real_name, person_path(person)
end
end
end
......@@ -5,7 +5,7 @@
%div.time
by
= album_person(post)
= link_to ((current_user.person == post.person)? 'you' : post.person.real_name), person_path(post.person)
%br
= link_to(how_long_ago(post), object_path(post))
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter