Changes for page Deadlines

From version 87.1
edited by Andrea Omicini
on 03/07/2023 23:54
Change comment: There is no comment for this version
To version 85.1
edited by Andrea Omicini
on 25/06/2023 10:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,13 +1,11 @@
1 1  {{velocity}}
2 2  {{html clean="false" wiki="true"}}
3 -#template('apice_macros.vm')
4 -#setobjectspace("Events")
5 -#template('apice_event_macros.vm')
3 +#template('apice_events.vm')
6 6  #template('apice_user_param.vm')
7 7  ## user forthcoming events
8 8  ## incoming deadlines
9 9  #set( $query = ", BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end
10 - where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}.Class' and objEvent.name <> '${objectPool}.Template' and propDate.id.id = objEvent.id and propDate.name = 'paper_submission' and date(propDate.value) > current_date() #if( $oneUser) and objRole.name = doc.fullName and objRole.className = '${objectSpace}.Roles.Class' and propWho.id.id = objRole.id and propWho.name = 'who' and propWho.value like '$userString' #end order by date(propDate.value) asc ")
8 + where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}.${objectClass}' and objEvent.name <> '${objectPool}.${objectTemplate}' and propDate.id.id = objEvent.id and propDate.name = 'paper_submission' and date(propDate.value) > current_date() #if( $oneUser) and objRole.name = doc.fullName and objRole.className = '${objectSpace}.Roles.${objectClass}' and propWho.id.id = objRole.id and propWho.name = 'who' and propWho.value like '$userString' #end order by date(propDate.value) asc ")
11 11  ## execute query
12 12  #set( $itemFound = $xwiki.searchDocuments($query) )
13 13  ##
... ... @@ -15,6 +15,7 @@
15 15  <div class="mainheader">
16 16  $services.localization.render('incomingdeadlines').toLowerCase()
17 17  </div>
16 +#template('apice_event_macros.vm')
18 18  <div>
19 19   #foreach( $item in $itemFound )
20 20   #set( $itemDoc = $xwiki.getDocument($item) )