display preview of event in list view, if there's no description
This commit is contained in:
parent
9cf3a74c64
commit
7b354da9f4
|
@ -149,6 +149,7 @@ class View(grok.View, utils.MonthlyView):
|
|||
new_event.id = event.id
|
||||
new_event.title = event.title
|
||||
new_event.place = event.place
|
||||
new_event.text = event.text
|
||||
new_event.description = event.description
|
||||
new_event.start = event.start+datetime.timedelta(i+1)
|
||||
new_event.end = event.end
|
||||
|
|
|
@ -216,6 +216,7 @@ jq('#tabellio-agenda tbody a').click(
|
|||
<div class="event-data">
|
||||
<h3><span class="event-type-square">■</span><span tal:replace="event/title"/></h3>
|
||||
<p class="description" tal:condition="event/description" tal:content="event/description"></p>
|
||||
<div class="text" tal:condition="python: event.text and not event.description" tal:content="structure event/preview"></div>
|
||||
<p class="details"><a href="#" tal:attributes="href event/absolute_url">Détails</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in New Issue