[IMP] Event page improved

bzr revid: fp@openerp.com-20131116164023-lwxgznhd3u51pzm2
This commit is contained in:
Fabien Pinckaers 2013-11-16 17:40:23 +01:00
parent 19505a534c
commit f105e069f6
1 changed files with 25 additions and 18 deletions

View File

@ -169,6 +169,28 @@
<t t-set="additional_title">Events</t>
<div id="wrap">
<div class="container">
<div class="row mt8">
<div class="col-sm-7">
<ol class="breadcrumb mb0">
<li t-if="not event_id.type"><a href="/event">All Events</a></li>
<li t-if="event_id.type">
<a t-href="/event?type=#{event_id.type.id}" t-esc="event_id.type.name"/>
</li>
<li t-if="event_id.country_id">
<a t-href="/event?country=#{event_id.country_id.id}" t-esc="event_id.country_id.name"/>
</li>
<li class="active">
<span t-field="event_id.name"/>
</li>
</ol>
</div><div class="col-sm-5">
<t t-call="website.publish_management">
<t t-set="object" t-value="event_id"/>
<t t-set="publish_edit" t-value="True"/>
<t t-set="publish_controller">/event/publish</t>
</t>
</div>
</div>
<h1 class="text-center" t-field="event_id.name"></h1>
<h4 class="text-center text-muted">
@ -244,12 +266,6 @@
<div class="panel panel-default" t-if="event_id.address_id">
<div class="panel-heading">
<t t-call="website.publish_management">
<t t-set="object" t-value="event_id"/>
<t t-set="publish_edit" t-value="True"/>
<t t-set="publish_controller">/event/publish</t>
<t t-set="style">position: relative; top: -80px;</t>
</t>
<h4>Where</h4>
</div>
<div class="panel-body">
@ -303,29 +319,20 @@
</div>
<div class="panel-body">
<t t-call="website_mail.follow"><t t-set="object" t-value="event_id"/></t>
<div t-if="event_id.twitter_hashtag">
<p><strong>Join the Experience</strong></p>
<div t-if="event_id.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="'twitter.com/search?q=#'+event_id.twitter_hashtag" class="label label-primary">#<span t-field="event_id.twitter_hashtag"/></a>
<a t-att-href="'http://twitter.com/search?q=#'+event_id.twitter_hashtag" class="label label-primary">#<span t-field="event_id.twitter_hashtag"/></a>
</strong></p>
</div>
</div>
</div>
<ul class="list-unstyled">
<li t-if="event_id.type">
<a t-href="/event?type=#{event_id.type.id}"><strong><span class="icon-double-angle-right"/> Other <t t-esc="event_id.type.name"/></strong></a>
</li>
<li t-if="event_id.country_id">
<a t-href="/event?country=#{event_id.country_id.id}"><strong><span class="icon-double-angle-right"/> Other Events in <span t-esc="event_id.country_id.name"/></strong></a>
</li>
<li><a href="/event"><strong><span class="icon-double-angle-right"/> All Events</strong></a></li>
</ul>
</div>
</div>
</div>