Commit 9a5d988d authored by Sean Madsen's avatar Sean Madsen

book home pages - fixing template issue from changes in other branch just merged

parent fcb9ea58
......@@ -40,6 +40,7 @@ class PublishController extends Controller {
. "to really slow down the server. If you want to publish all books "
. "you can run 'docs:publish' from the command line interface.");
}
$content['identifier'] = trim($identifier, "/");
$content['messages'] = $this->publisher->getMessages();
return $this->render('AppBundle:Publish:publish.html.twig', $content);
}
......
{% extends "::base.html.twig" %}
{% block title %}CiviCRM Documentation: Publish{% endblock %}
{% set page_title = "Publishing " ~ identifier %}
{% block body %}
{% block content %}
<h1>Publish documentation</h1>
<p>For help and more information, consult the <a href="https://github.com/civicrm/civicrm-docs">documentation documentation,</a> and the <a href="/log">logs of the publishing process</a>.
{% if messages is defined %}
<h2>Results</h2>
{% for message in messages %}
<p>
<span class="message message-{{ message.label|lower }}">{{ message.label }}:</span>
{{ message.content|raw }}</p>
{% endfor %}
{% endif %}
{% for message in messages %}
<p>
<span class="message message-{{ message.label|lower }}">
{{ message.label }}
</span>
<span class="separator">:</span>
{{ message.content|raw }}
</p>
{% endfor %}
{% endblock %}
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