<commit_before><%args>
    $limit  => 10
    $start  => 1
    $page   => undef
    $show_approval_buttons => undef
    $creator               => '%'
    $heading => 1
</%args>
<h<% $heading %>><% i18nGettext ('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SHOW_PENDING_REQUESTS_TITLE') %></h<% $heading %>>
% if ($creator ne '%') {
  <p>
  <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SHOW_PENDING_REQUESTS_LIMITED_TO_CREATOR', '__CREATOR__' => $creator) %>
  </p>
% }
<table>
  <tr>
% if ($show_approval_buttons) {
    <& /service/open_form.mhtml, 'action' => $context->{menu}->get_root()."/service/workflow/bulk_approval.html" &>
    <script language="JavaScript" type="text/javascript">
<!--
function ToggleAll() {
  for (var i = 0; i < document.OpenXPKI.elements.length; i++) {
    if (document.OpenXPKI.elements[i].type == 'checkbox') {
        document.OpenXPKI.elements[i].checked = !(document.OpenXPKI.elements[i].checked);
    }
  }
}
-->
    </script>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_APPROVE') %><br>
<input type="checkbox" name="toggleAll" title="Toggle" onclick="ToggleAll()">
    </th>
% }
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SERIAL') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_TICKETS') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_LAST_UPDATE') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_SUBJECT') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_PROFILE') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_ROLE') %></th>
% if ($creator eq '%') {
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATOR') %></th>
% }
  </tr>
% foreach my $res (@results) {
  <tr>
%   if ($show_approval_buttons) {
    <td><input type="checkbox" name="approvals"></td>
%   }
    <td><input type="hidden" name="serials" value="<% $res->{'SERIAL'} %>">
        <& /lib/html/a.mhtml,
            target   => $context->{menu}->get_root() . '/service/workflow/show_csr_brief.html',
            label    => $res->{'SERIAL'},
            params   => [
                [ 'id' , $res->{'SERIAL'} ],
            ],
        &>
    </td>
    <td>
% foreach my $ticket (@{ $res->{'TICKETS'} }) {
<small><a href="<% $ticket->{URL} %>"><% $ticket->{ID} %></a></small><br>
% }
    </td>
    <td><% $res->{'LAST_UPDATE'} %></td>
    <td>
    <% $res->{'SUBJECT'} %>
%   foreach my $san (@{ $res->{'SUBJECT_ALT_NAMES'} }) {
%      if ($san =~ m{ \A DNS:(.*) \z }xms) {
%         if (! gethostbyname($1)) {
            <br><small><font color="#ff0000"><% $san %></font></small>
%         }
%         else {
            <br><small><font color="#009900"><% $san %></font></small>
%         }
%      }
%      else {
        <br><small><% $san %></small>
%      }
%   }
    </td>
    <td><% i18nGettext($res->{'PROFILE'}) %></td>
    <td><% i18nGettext($res->{'ROLE'}) %></td>
%   if ($creator eq '%') {
<td><a href="<% $context->{menu}->get_root() %>./service/workflow/show_pending_requests.html?creator=<% $res->{'CREATOR'} %>;show_approval_buttons=1;<% $context->{menu}->get_link_params() %>"><% $res->{'CREATOR'} %></a></td>
%   }
  </tr>
% }<commit_msg>Web interface: fix link to "all requests of one requestor" (... -> ..)<commit_after><%args>
    $limit  => 10
    $start  => 1
    $page   => undef
    $show_approval_buttons => undef
    $creator               => '%'
    $heading => 1
</%args>
<h<% $heading %>><% i18nGettext ('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SHOW_PENDING_REQUESTS_TITLE') %></h<% $heading %>>
% if ($creator ne '%') {
  <p>
  <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SHOW_PENDING_REQUESTS_LIMITED_TO_CREATOR', '__CREATOR__' => $creator) %>
  </p>
% }
<table>
  <tr>
% if ($show_approval_buttons) {
    <& /service/open_form.mhtml, 'action' => $context->{menu}->get_root()."/service/workflow/bulk_approval.html" &>
    <script language="JavaScript" type="text/javascript">
<!--
function ToggleAll() {
  for (var i = 0; i < document.OpenXPKI.elements.length; i++) {
    if (document.OpenXPKI.elements[i].type == 'checkbox') {
        document.OpenXPKI.elements[i].checked = !(document.OpenXPKI.elements[i].checked);
    }
  }
}
-->
    </script>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_APPROVE') %><br>
<input type="checkbox" name="toggleAll" title="Toggle" onclick="ToggleAll()">
    </th>
% }
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_SERIAL') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_TICKETS') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_LAST_UPDATE') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_SUBJECT') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_PROFILE') %></th>
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_WORKFLOW_CSR_CERT_ROLE') %></th>
% if ($creator eq '%') {
    <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATOR') %></th>
% }
  </tr>
% foreach my $res (@results) {
  <tr>
%   if ($show_approval_buttons) {
    <td><input type="checkbox" name="approvals"></td>
%   }
    <td><input type="hidden" name="serials" value="<% $res->{'SERIAL'} %>">
        <& /lib/html/a.mhtml,
            target   => $context->{menu}->get_root() . '/service/workflow/show_csr_brief.html',
            label    => $res->{'SERIAL'},
            params   => [
                [ 'id' , $res->{'SERIAL'} ],
            ],
        &>
    </td>
    <td>
% foreach my $ticket (@{ $res->{'TICKETS'} }) {
<small><a href="<% $ticket->{URL} %>"><% $ticket->{ID} %></a></small><br>
% }
    </td>
    <td><% $res->{'LAST_UPDATE'} %></td>
    <td>
    <% $res->{'SUBJECT'} %>
%   foreach my $san (@{ $res->{'SUBJECT_ALT_NAMES'} }) {
%      if ($san =~ m{ \A DNS:(.*) \z }xms) {
%         if (! gethostbyname($1)) {
            <br><small><font color="#ff0000"><% $san %></font></small>
%         }
%         else {
            <br><small><font color="#009900"><% $san %></font></small>
%         }
%      }
%      else {
        <br><small><% $san %></small>
%      }
%   }
    </td>
    <td><% i18nGettext($res->{'PROFILE'}) %></td>
    <td><% i18nGettext($res->{'ROLE'}) %></td>
%   if ($creator eq '%') {
<td><a href="<% $context->{menu}->get_root() %>/service/workflow/show_pending_requests.html?creator=<% $res->{'CREATOR'} %>;show_approval_buttons=1;<% $context->{menu}->get_link_params() %>"><% $res->{'CREATOR'} %></a></td>
%   }
  </tr>
% }
{'fraction_non_alphanumeric': 0.229655592807071, 'fraction_numerical': 0.018591892715635477, 'mean_word_length': 3.526206896551724, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 264, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3528635', 'n_tokens_mistral': 2780, 'n_tokens_neox': 2703, 'n_words': 356}