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

%WORKFLOWHISTORY{ "ControlledTestTopic" header="

History

" format="" footer="
Rev Person State Comment Date
$rev Wikiusername $percntTRANSLATE{\"$state\"}$percnt $comment $date
" separator="$n" }%

Classified Controlled Test Topic

%WORKFLOWHISTORY{ "ClassifiedControlledTestTopic" header="

History

" format="" footer="
Rev Person State Comment Date
$rev Wikiusername $percntTRANSLATE{\"$state\"}$percnt $comment $date
" separator="$n" }%

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 © 2002-2024 by contributors to Wasserstoff-Fahrer Forum ImpressumDatenschutz  Feedback
This website is using cookies. More info. That's Fine