Changes for page Per Year

From version 40.1
edited by Andrea Omicini
on 25/10/2021 20:41
Change comment: There is no comment for this version
To version 39.2
edited by Andrea Omicini
on 25/10/2021 20:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,7 +30,6 @@
30 30  #set( $userNamePar = $request.user.trim() )
31 31  ## default values
32 32  #set( $oneUser = false )
33 -#set( $oneRole = false )
34 34  #set( $userFirstName = "" )
35 35  #set( $userLastName = "" )
36 36  #if( $userName || $userNamePar )
... ... @@ -51,6 +51,7 @@
51 51   #end
52 52  ##user selected and existing user page
53 53   #set( $rolePar = $request.role.trim().toLowerCase() )
53 + #set( $oneRole = false )
54 54   #set( $selectedRole = '' )
55 55   #if( $rolePar != '' && $allThesisRoles.contains($rolePar) )
56 56   #set( $oneRole = true )
... ... @@ -64,16 +64,18 @@
64 64  ## if $oneUser is false, $oneRole means nothing -- so all users, all roles / just status
65 65  ##
66 66  ## title
67 ->#if( $oneStatus ){{thesisStatus plural='yes' uppercase='yes'}}$selectedStatus{{/thesisStatus}}#else{{stringEngIta eng="Theses" ita="Tesi"/}}#end#if( $oneUser ) / $userFirstName **$userLastName**#end#if( $oneRole ) / $selectedRole#end{{id name='top'/}}
68 -## index
69 -#if( !$oneStatus )
70 -(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $allThesisStatuses )#if ($velocityCount > 1) | #end [[{{thesisStatus plural="true" uppercase="false"}}$status{{/thesisStatus}}>>||anchor="$status"]]#end)))
71 -#elseif( !$oneRole )
72 -(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $role in $allThesisRoles )#if ($velocityCount > 1) | #end [[$role>>||anchor="$role"]]#end)))
73 -#end{{id name='index'/}}
67 +>#if( $oneStatus ){{thesisStatus plural='yes' uppercase='yes'}}$selectedStatus{{/thesisStatus}}#else{{stringEngIta eng="Theses" ita="Tesi"/}}#end#if( $oneUser ) / $userFirstName **$userLastName**#if( $oneRole ) / $selectedRole#end#end
68 +
74 74  ## search theses
75 75  #foreach( $status in $allThesisStatuses )
76 76   #if( !$oneStatus || $selectedStatus == $status )
72 +#if( !$oneSort )
73 +(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $sort in $sortList )#if ($velocityCount > 1) | #end [[{{pubSort plural="true" uppercase="false"}}$sort{{/pubSort}}>>||anchor="$sort"]]#end)))
74 +#elseif( !$oneYear )
75 +(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $year in $yearList )#if ($velocityCount > 1) | #end [[$year>>||anchor="$year"]]#end)))
76 +#end
77 +
78 +
77 77  = $status =
78 78  ## some selected status or all statuses / now $status
79 79   #if( $oneUser )