ControlledTopicRenderWorkflowHistory
render a table of the workflow history

02 May 2019 - 10:19 | Version 1 |

Documentation

TODO

Parameters
  • OBJECT: topic name to render the workflow history for, defaults to BASEWEB.BASETOPIC

Implementation

%STARTINCLUDE%%WORKFLOWHISTORY{
   "%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"
   header="<h2 >%TRANSLATE{"History"}%</h2>
<table class='foswikiTable foswikiFlatTable foswikiFullWidth foswikiStripes foswikiLayoutTable'>
<thead>
   <tr>
      <th>%TRANSLATE{"Rev"}%</th>
      <th>%TRANSLATE{"Person"}%</th>
      <th>%TRANSLATE{"State"}%</th>
      <th>%TRANSLATE{"Comment"}%</th>
      <th>%TRANSLATE{"Date"}%</th>
   </tr>
<thead><tbody>"
   format="<tr>
      <td> <b>[[%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%?rev=$rev][$rev]]</b> </td>
      <td> [[$wikiusername]] </td>
      <td> $percntTRANSLATE{\"$state\"}$percnt </td>
      <td> $comment </td>
      <td> $date </td>
   </tr>"
   footer="</tbody></table>"
   separator="$n"
}%%STOPINCLUDE%

Test

Controlled Test Topic

History

Rev Person State Comment Date
2 MichaelDaum ?{"submitted"}? Fri, 29 June 2018 14:25:47 GMT
3 MichaelDaum ?{"rejected"}? Thu, 01 January 1970 00:00:00 GMT
4 MichaelDaum ?{"draft"}? Fri, 29 June 2018 14:26:22 GMT
6 MichaelDaum ?{"submitted"}? Wed, 21 November 2018 09:47:22 GMT
7 MichaelDaum ?{"approved"}? Wed, 21 November 2018 09:47:26 GMT
8 MichaelDaum ?{"draft"}? Wed, 21 November 2018 09:47:38 GMT
9 MichaelDaum ?{"submitted"}? Tue, 20 November 2018 21:00:00 GMT
10 MichaelDaum ?{"approved"}? Tue, 20 November 2018 21:00:00 GMT
12 MichaelDaum ?{"draft"}? Tue, 20 November 2018 21:00:00 GMT

Classified Controlled Test Topic

History

Rev Person State Comment Date
2 MichaelDaum ?{"submitted"}? qweqweqe qweq weq weqeq we qwe qweqeq Thu, 01 January 1970 00:00:00 GMT
3 MichaelDaum ?{"approved"}? yqweqwe qweyyyyy Thu, 01 January 1970 00:00:00 GMT

Copyright

© 2006-2019 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback