Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/ServerGrove/KbBundle/Controller/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ class ArticlesController extends Controller
* @param Article $article
* @param Category $category
* @param bool $registerView
* @param bool $searchForm
* @param bool $showComments
*
* @return array
*/
public function viewAction(Article $article, Category $category, $registerView = true, $searchForm = false, $showComments = true)
public function viewAction(Article $article, Category $category, $registerView = true, $showComments = true)
{
if ($registerView) {
$this->registerView($article);
Expand All @@ -45,7 +44,6 @@ public function viewAction(Article $article, Category $category, $registerView =
return array(
'category' => $category,
'article' => $article,
'searchForm' => $searchForm,
'showComments' => $showComments
);
}
Expand Down
1 change: 0 additions & 1 deletion src/ServerGrove/KbBundle/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function (Article $article) use ($keyword) {
'article' => $article,
'category' => $article->getDefaultCategory(),
'registerView' => false,
'searchForm' => true,
'showComments' => false
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

{% block content %}
{% spaceless %}
{% if searchForm is defined and searchForm %}
{% render "ServerGroveKbBundle:Default:searchForm" %}
{% endif %}

{% set showComments = showComments is defined ? showComments : true %}
{% render "ServerGroveKbBundle:Articles:articleContent" with { 'article': article, 'category': category, 'showComments': showComments } %}
{% endspaceless %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{% extends "ServerGroveKbBundle:Default:layout.html.twig" %}

{% block content %}
{% render "ServerGroveKbBundle:Default:searchForm" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "ServerGroveKbBundle:Default:layout.html.twig" %}
{% block content %}
{% render "ServerGroveKbBundle:Default:searchForm" %}
<h2>{% trans %}Articles{% endtrans %}</h2>
<ul class="unstyled">
{% for article in results %}
Expand Down
2 changes: 1 addition & 1 deletion src/ServerGrove/KbBundle/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
{% block postheader %}{% endblock postheader %}
</div>
{% include "ServerGroveKbBundle:Default:breadcrumb.html.twig" %}
{% render "ServerGroveKbBundle:Default:searchForm" %}
<div class="span2">
{% render "ServerGroveKbBundle:Categories:selector" with { 'topCategory': category is defined ?
category.getTopCategory() :
Expand All @@ -52,6 +51,7 @@
} %}
</div>
<div class="span10">
{% render "ServerGroveKbBundle:Default:searchForm" %}
{% block content %}{% endblock content %}
</div>

Expand Down