Commit cae4d02e authored by Joenio Costa's avatar Joenio Costa

add path to parents to forum and blog

forum and blog pages now has same behavior as other articles within folders,
like image gallery
parent 1d198d4d
Pipeline #158344356 failed with stages
in 2 minutes and 17 seconds
......@@ -6,6 +6,7 @@
<%= link_to(@page.name, @page.url) %>
<% end %>
</h1>
<%= path_to_parents @page %>
<%= render :partial => "publishing_info", :locals => {:article => @page }%>
<% if @page.display_preview? %>
<div class="preview">
......
......@@ -175,3 +175,13 @@ Feature: forum
| Post one | joaosilva | Hi all | Hi all |
When I go to /joaosilva/forum
Then I should see "Joao Silva" within ".forum-post-last-answer"
Scenario: link to parent when viewing a forum topic
Given the following forums
| owner | name |
| joaosilva | Silva Forum |
And the following articles
| owner | name | parent |
| joaosilva | Post one | Silva Forum |
When I go to /joaosilva/silva-forum/post-one
Then I should see "Silva Forum" within ".path-to-parents"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment