Skip to content

Commit 489cb18

Browse files
author
Marylou Kunkle
committed
The list of followers and followees are now links
When a hacker clicks on his followers or following links, they now have links to the fellow hackers instead of just a list.
1 parent 9754f42 commit 489cb18

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

views/hackers/followers.haml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
%ul
2-
- @hacker.followers.each do |follower|
3-
%li= follower.username
2+
- @hacker.followers.each do |follower|
3+
%li
4+
%a{:href => "/hackers/#{follower.username}"}= follower.username

views/hackers/following.haml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
%ul
2-
- @hacker.following.each do |followee|
3-
%li= followee.username
2+
- @hacker.following.each do |followee|
3+
%li
4+
%a{:href => "/hackers/#{followee.username}"}= followee.username

0 commit comments

Comments
 (0)