OSDN Git Service

Update app/views/wikis/pages.html.haml
authorMrHammy <eekhoorn12@gmail.com>
Fri, 11 Jan 2013 12:40:29 +0000 (13:40 +0100)
committerMrHammy <eekhoorn12@gmail.com>
Fri, 11 Jan 2013 12:40:29 +0000 (13:40 +0100)
Changed the link in the pages of the wiki to the direct link instead of the first created page

app/views/wikis/pages.html.haml

index 7421d8f..04253a8 100644 (file)
@@ -10,7 +10,7 @@
     - @wikis.each_with_index do |wiki_page, i|
       %tr
         %td
-          = link_to wiki_page.title, project_wiki_path(@project, wiki_page, old_page_id: wiki_page.id)
+          = link_to wiki_page.title, project_wiki_path(@project, wiki_page)
           (#{time_ago_in_words(wiki_page.created_at)}
           ago)
         %td= wiki_page.slug