[IMP]if not publish than red icon.
bzr revid: vme@tinyerp.com-20140314064536-j2w3tlvomcfmci11
This commit is contained in:
parent
acd7451951
commit
9a9aa166ac
|
@ -169,7 +169,8 @@ class website_event(http.Controller):
|
|||
'end_time': end_time,
|
||||
'speaker_ids': [s.name for s in event_tracks.speaker_ids],
|
||||
'row_span': index - row_span,
|
||||
'color': color
|
||||
'color': color,
|
||||
'publish': not event_tracks.website_published
|
||||
})
|
||||
|
||||
#Get All Locations and make room_list contain unique value.
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
<t t-if="not days[day][slot][index]['location_id'] and for_all" >
|
||||
<t t-set="for_all" t-value="False"/>
|
||||
<td t-if="sid" id="seach_enable" t-att-colspan="len(room_list)" class="success text-center">
|
||||
<img t-if="days[day][slot][index]['publish']" title="Not Published" style="width:10px; height:10px" src="/web/static/src/img/icons/gtk-no.png" />
|
||||
<a t-attf-href="/event/#{ slug(event) }/track/#{ slug([ days[day][slot][index]['id'], days[day][slot][index]['title']]) }"> <t t-esc="days[day][slot][index]['title']" /> </a>
|
||||
<t t-foreach="days[day][slot][index]['speaker_ids']" t-as="speaker">
|
||||
<small class="text-muted">
|
||||
|
@ -104,7 +105,8 @@
|
|||
<t t-if="days[day][slot][index]['location_id'] == room[0]" >
|
||||
<td t-att-rowspan="days[day][slot][index]['row_span']" t-attf-style="width: #{td_width}px;"
|
||||
t-attf-class="event_color_#{days[day][slot][index]['color']}" id="seach_enable">
|
||||
<a t-attf-href="/event/#{ slug(event) }/track/#{ slug([ days[day][slot][index]['id'], days[day][slot][index]['title']]) }"> <t t-esc="days[day][slot][index]['title']" /> </a>
|
||||
<img t-if="days[day][slot][index]['publish']" title="Not Published" style="width:10px; height:10px" src="/web/static/src/img/icons/gtk-no.png" />
|
||||
<a t-attf-href="/event/#{ slug(event) }/track/#{ slug([ days[day][slot][index]['id'], days[day][slot][index]['title']]) }"> <t t-esc="days[day][slot][index]['title']" /> </a>
|
||||
<t t-foreach="days[day][slot][index]['speaker_ids']" t-as="speaker">
|
||||
<small class="text-muted">
|
||||
<t t-if="speaker == days[day][slot][index]['speaker_ids'][:1][0]"><br/>By </t>
|
||||
|
|
Loading…
Reference in New Issue