Download:
child 31:03bc6e1b4f3c
parent 29:272a87ebf7c1
30:6690b2078d4c
Anton Shestakov <av6@dwimlabs.net>, Wed, 11 Jul 2018 11:41:54 +0800
changeset: add users and dates to obsfateentry

1 файлов изменено, 3 вставок(+), 1 удалений(-) [+]
templates/kit/map file | annotate | diff | comparison | revisions
--- a/templates/kit/map Sat Jun 30 15:56:07 2018 +0800
+++ b/templates/kit/map Wed Jul 11 11:41:54 2018 +0800
@@ -265,7 +265,9 @@
obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
obsfateverb = '{obsfateverb(successors, markers)}'
obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
-obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
+obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
+obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}'
+obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}'
shortlogentry = '
<tr>
<td class="age">{date|rfc822date}</td>