Commit 7e3a169a authored by Hermann Mayer's avatar Hermann Mayer

Improved deployment. Added new sidebar section to fixture.

parent be5003f5
......@@ -54,6 +54,9 @@ Load all Fixtures
php app/console doctrine:fixtures:load
---
Deploy Notes
============
......
deploy @ 53b57f93
Subproject commit f8e2ecdd5ad7c5c197aa208938135e3c65e768e9
Subproject commit 53b57f935f01cb0bdfff82ac6f040f17726ec417
......@@ -60,6 +60,28 @@ zusätzliche Arbeit bedeutet.
$manager->persist($page);
// -------------------------------------
$section = new SidebarSection();
$section
->setTitle('')
->setContent('{% if is_granted(\'ROLE_ADMIN\') %}
<hr>
<h3>Administration</h3>
<p>
<a href="{{ path(\'author_page_edit\', { \'id\': page.id }) }}" class="btn btn-primary">
<i class="icon-edit icon-white"></i>
Seite Bearbeiten
</a>
</p>
{% endif %}')
->setSidebar($this->getReference('default-sidebar'))
;
$manager->persist($section);
// -------------------------------------
$section = new SidebarSection();
$section
->setTitle('Teilen')
......@@ -76,6 +98,8 @@ Freunden und Bekannten über Googles Soziales Netzwerk oder über Facebook.
$manager->persist($section);
// -------------------------------------
// Flush to Database
$manager->flush();
}
......
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