[IMP] social widget on events

bzr revid: fp@tinyerp.com-20131222223423-7syxqgff7mswfhh8
This commit is contained in:
Fabien Pinckaers 2013-12-22 23:34:23 +01:00
parent 2be80c2205
commit 91b683a50a
1 changed files with 24 additions and 21 deletions

View File

@ -206,7 +206,7 @@
</div>
</div>
</div>
<div class="col-md-4">
<div class="col-md-4" id="right_column">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Practical Info</h4>
@ -221,26 +221,6 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4>Social Stream</h4>
</div>
<div class="panel-body">
<t t-call="website_mail.follow"><t t-set="object" t-value="event"/></t>
<div t-if="event.twitter_hashtag" class="mt16">
<p><strong>Participate on Twitter</strong></p>
<p class="text-muted">
Find out what others are seeing and
saying about this event, and join the
conversation.
</p>
<p><strong>Use this tag:
<a t-att-href="'http://twitter.com/search?q=#'+event.twitter_hashtag" class="label label-primary">#<span t-field="event.twitter_hashtag"/></a>
</strong></p>
</div>
</div>
</div>
<div class="panel panel-default" t-if="False">
<div class="panel-heading">
<h4>Documents</h4>
@ -257,6 +237,29 @@
</t>
</template>
<template id="event_track_social" name="Social Widgets" inherit_option_id="website_event_track.track_view">
<xpath expr="//div[@id='right_column']" position="inside">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Social Stream</h4>
</div>
<div class="panel-body">
<t t-call="website_mail.follow"><t t-set="object" t-value="event"/></t>
<div t-if="event.twitter_hashtag" class="mt16">
<p><strong>Participate on Twitter</strong></p>
<p class="text-muted">
Find out what others are seeing and
saying about this event, and join the
conversation.
</p>
<p><strong>Use this tag:
<a t-att-href="'http://twitter.com/search?q=#'+event.twitter_hashtag" class="label label-primary">#<span t-field="event.twitter_hashtag"/></a>
</strong></p>
</div>
</div>
</div>
</xpath>
</template>
<template id="event_track_proposal">
<t t-call="website_event.layout">