Skip to content

Commit

Permalink
Show complete post children info see BT#12723
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed May 19, 2017
1 parent b74301c commit 7582301
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions plugin/studentfollowup/view/post.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@
</a>
{% endif %}

{% if post.children.count %}
<h3>Children</h3>
{% for child in post.children %}
<p>
<a href="{{ post_url }}&post_id={{ child.id }}">
{{ child.title }}
</a>
</p>
{% endfor %}
{% endif %}

{% if related_posts %}
<h3>Related</h3>
{% for post in related_posts %}
Expand Down Expand Up @@ -71,6 +60,15 @@
</div>
</div>
</div>
{% if post.children.count %}
{% for child in post.children %}
{{ _self.post_template('all', child) }}

{#<a href="{{ post_url }}&post_id={{ child.id }}">#}
{#{{ child.title }}#}
{#</a>#}
{% endfor %}
{% endif %}
{% endif %}
{% endmacro %}

Expand Down

0 comments on commit 7582301

Please sign in to comment.