diff --git a/app/AppKernel.php b/app/AppKernel.php index ca2290b..5763f88 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -22,6 +22,7 @@ public function registerBundles() new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), new JMS\DiExtraBundle\JMSDiExtraBundle($this), new Vich\UploaderBundle\VichUploaderBundle(), + new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), new AppBundle\AppBundle(), ); diff --git a/app/Resources/FOSUserBundle/views/layout.html.twig b/app/Resources/FOSUserBundle/views/layout.html.twig index 6ce65f7..03b79d1 100644 --- a/app/Resources/FOSUserBundle/views/layout.html.twig +++ b/app/Resources/FOSUserBundle/views/layout.html.twig @@ -25,8 +25,8 @@
-Id | -Name | -Path | -Access | -Created | -Updated | -Actions | -
---|---|---|---|---|---|---|
{{ entity.id }} | -{{ entity.name }} | -{{ entity.path }} | -{{ entity.access }} | -{% if entity.created %}{{ entity.created|date('Y-m-d H:i:s') }}{% endif %} | -{% if entity.updated %}{{ entity.updated|date('Y-m-d H:i:s') }}{% endif %} | -- - | -
{{ entity.body|raw }}
- - - {% endblock %} + {% if entity.user.username == app.user.username %} + Edit + {% endif %} + {% if is_granted('ROLE_ADMIN') and entity.status==0 %} + Release + {% endif %} +' + marker.title + '
' + + marker.content + '
'; $('#map_canvas').gmap('addMarker', { 'position': new google.maps.LatLng(lat,long), 'bounds': true }).click(function () { - $('#map_canvas').gmap('openInfoWindow', {'content': marker.content}, this); + $('#map_canvas').gmap('openInfoWindow', {'content': content}, this); }); }); }); diff --git a/uploads/BaldHead.jpg b/uploads/BaldHead.jpg new file mode 100644 index 0000000..8c60450 Binary files /dev/null and b/uploads/BaldHead.jpg differ diff --git a/uploads/eveningsky.jpg b/uploads/eveningsky.jpg new file mode 100644 index 0000000..64e1710 Binary files /dev/null and b/uploads/eveningsky.jpg differ diff --git a/uploads/list.png b/uploads/list.png new file mode 100644 index 0000000..5f71ad8 Binary files /dev/null and b/uploads/list.png differ diff --git a/uploads/recycledwisdom.jpg b/uploads/recycledwisdom.jpg new file mode 100644 index 0000000..4a9ff49 Binary files /dev/null and b/uploads/recycledwisdom.jpg differ diff --git a/uploads/worms.pdf b/uploads/worms.pdf new file mode 100644 index 0000000..206b816 Binary files /dev/null and b/uploads/worms.pdf differ