Skip to content

Commit 9754f42

Browse files
author
Marylou Kunkle
committed
Got all the links working on the admin page
The forum discussions and the forum replies links are both the same, because the replies are on the same page as the discussion. For now. I guess.
1 parent 3cb41c3 commit 9754f42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

views/admin/index.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
%ul
1414
- @postlinks.each do |postlink|
1515
%li
16-
%a{:href => "/forums/#{postlink.title}"}= postlink.title
16+
%a{:href => "/forums/#{postlink.forum}/#{postlink.slug}"}= postlink.title
1717

1818
%p New Forum Replies: #{@forumreplies}
1919
%ul
2020
- @postlinks.each do |replylink|
2121
%li
22-
%a{:href => "/forums/#{replylink.title}/#{replylink.replies.title}"}= replylink.slug
22+
%a{:href => "/forums/#{replylink.forum}/#{replylink.slug}"}= replylink.slug
2323

2424

0 commit comments

Comments
 (0)