Permalink
Browse files

added twitter share button

fixes part of #19
  • Loading branch information...
inmarelibero committed Oct 26, 2012
1 parent 183a6fd commit 890861d3c92a74e38ec08eaaa8f03004008a8fe4
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/Bricks/SiteBundle/Resources/views/Brick/show.html.twig
@@ -15,6 +15,15 @@
<i class="icon-user"></i> {{ brick.user }}
|
<i class="icon-calendar"></i> last update: {{ brick.updatedAt|date('d/m/Y') }}
+
+
+ <a href="https://twitter.com/share" class="twitter-share-button pull-right"
+ data-url="{{ app.request.uri }}"
+ data-text="{{ brick.title }} {{ app.request.uri }}"
+ data-via="SymfonyBricks"
+ >
+ Tweet
+ </a>
<hr>
<div class="content">

0 comments on commit 890861d

Please sign in to comment.