<commit_before>
<div class="container">
    <div class="row">

<div class="home-bottom" style="position:relative">
    <!-- <div class="col-xs-3">
        <register-facets></register-facets>
    </div> -->
    <div class="col-xs-12 my_well my_well-white">
        <div>

	    	<h1 ng-hide="activity">Action</h1>
			<h1 ng-show="activity" ng-switch="activity.name">
				<span ng-switch-when="publishRecord">Approve or Reject record publication</span>
				<span ng-switch-default>*{{activity.name|uppercase}}</span>
			</h1>

			<table class="table table-striped">
			  <tr>
				  <th colspan="2">
				  	Request information and status
				  </th>
			  </tr>
			  <tr>
			  	<td style="width:40%">Request ID</td>
			  	<td style="text-transform:uppercase;white-space:nowrap;">
			  		{{formatWID(workflow._id)}}
				</td>
			  </tr>
			  <tr>
			  	<td>Request Type</td>
			  	<td>
			  		<div ng-switch="workflow.type.name">
						<span ng-switch-when="publishNationalRecord">Publishing request</span>
						<span ng-switch-when="publishReferenceRecord">Publishing request</span>
						<span ng-switch-default>*{{workflow.type.name|uppercase}}</span>
					</div>
				</td>
			  </tr>
			  <tr>
			  	<td>Record ID</td>
			  	<td>
			  		<a    ng-show="workflow.result.documentID||workflow.data.documentID" ng-href="/database/record?documentID={{workflow.result.documentID||workflow.data.documentID}}">{{workflow.result.documentID||workflow.data.documentID}}</a>
			  		<span ng-hide="workflow.result.documentID||workflow.data.documentID">[new]</span>
			  		<span ng-show="workflow.result.revision">(rev. {{workflow.result.revision}})</span>
				</td>
			  </tr>
			  <tr>
			  	<td>Description</td>
			  	<td>
					<strong>{{workflow.data.metadata.schema|schemaName}}</strong>
					-
					<span>{{workflow.data.title | lstring}}</span>

				</td>
			  </tr>
			  <tr>
			  	<td>Status</td>
			  	<td>
			  		<span ng-switch="workflow.state">
			  			<span ng-switch-when="running"><i class="fa fa-cog"></i> Pending</span>
			  			<span ng-switch-when="completed">Completed on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-when="canceled"><i class="fa fa-remove-circle"></i> Canceled on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-when=""><i class="fa fa-exclamation"></i> Failed on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-default>*{{workflow.state|uppercase}}</span>
					</span>
				</td>
			  </tr>

			  <tr ng-show="workflow.createdOn">
			  	<td>Created on</td>
			  	<td>{{workflow.createdOn|date:'short'}} by {{workflow.createdBy_info.firstName}} {{workflow.createdBy_info.lastName}}</td>
			  </tr>

			</table>


			<div ng-hide="activity.closedOn" ng-switch="activity.name" >
				<div ng-switch-when="publishRecord">

					<span ng-hide="activity.closedOn">

						<div ng-show="isAssignedToMe(activity)" class="text-right">

							<button type="button" class="btn btn-warning"  data-toggle="modal" data-target="#rejectModal"><i class="fa fa-remove"></i> Request Changes / Reject </button>
                            <a type="button" class="btn btn-default bg-draft" ng-href="/submit/{{onlineReportingURL(workflow.data.metadata.schema)}}{{workflow.data.metadata.schema}}/{{workflow.data.identifier}}?workflowId={{workflow._id}}"
                            ><i class="fa fa-edit"></i> Edit</a>
                            <button type="button" class="btn btn-default bg-published" ng-click="updateActivity({ action : 'approve' })"><i class="fa fa-check"></i> Approve</button>
						</div>
						<h4 ng-hide="isAssignedToMe(activity)">
                            <p class="alert alert-danger">
							Waiting for <em>{{activity.assignedTo_info[0].firstName}} {{activity.assignedTo_info[0].lastName}}</em> to approve or reject this request.
                            </p>
						</h4>
					</span>

				</div>
			</div>

			<div ng-show="activity.completedOn">

				<span ng-show="activity" ng-switch="activity.result.action">
					<span ng-switch-when="approve"><i class="fa fa-check"></i> Approved</span>
					<span ng-switch-when="reject"><i class="fa fa-remove"></i> Rejected</span><commit_msg>display all users to whom the workflow is assigned<commit_after>
<div class="container">
    <div class="row">

<div class="home-bottom" style="position:relative">
    <!-- <div class="col-xs-3">
        <register-facets></register-facets>
    </div> -->
    <div class="col-xs-12 my_well my_well-white">
        <div>

	    	<h1 ng-hide="activity">Action</h1>
			<h1 ng-show="activity" ng-switch="activity.name">
				<span ng-switch-when="publishRecord">Approve or Reject record publication</span>
				<span ng-switch-default>*{{activity.name|uppercase}}</span>
			</h1>

			<table class="table table-striped">
			  <tr>
				  <th colspan="2">
				  	Request information and status
				  </th>
			  </tr>
			  <tr>
			  	<td style="width:40%">Request ID</td>
			  	<td style="text-transform:uppercase;white-space:nowrap;">
			  		{{formatWID(workflow._id)}}
				</td>
			  </tr>
			  <tr>
			  	<td>Request Type</td>
			  	<td>
			  		<div ng-switch="workflow.type.name">
						<span ng-switch-when="publishNationalRecord">Publishing request</span>
						<span ng-switch-when="publishReferenceRecord">Publishing request</span>
						<span ng-switch-default>*{{workflow.type.name|uppercase}}</span>
					</div>
				</td>
			  </tr>
			  <tr>
			  	<td>Record ID</td>
			  	<td>
			  		<a    ng-show="workflow.result.documentID||workflow.data.documentID" ng-href="/database/record?documentID={{workflow.result.documentID||workflow.data.documentID}}">{{workflow.result.documentID||workflow.data.documentID}}</a>
			  		<span ng-hide="workflow.result.documentID||workflow.data.documentID">[new]</span>
			  		<span ng-show="workflow.result.revision">(rev. {{workflow.result.revision}})</span>
				</td>
			  </tr>
			  <tr>
			  	<td>Description</td>
			  	<td>
					<strong>{{workflow.data.metadata.schema|schemaName}}</strong>
					-
					<span>{{workflow.data.title | lstring}}</span>

				</td>
			  </tr>
			  <tr>
			  	<td>Status</td>
			  	<td>
			  		<span ng-switch="workflow.state">
			  			<span ng-switch-when="running"><i class="fa fa-cog"></i> Pending</span>
			  			<span ng-switch-when="completed">Completed on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-when="canceled"><i class="fa fa-remove-circle"></i> Canceled on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-when=""><i class="fa fa-exclamation"></i> Failed on {{workflow.closedOn|date:'short'}}</span>
			  			<span ng-switch-default>*{{workflow.state|uppercase}}</span>
					</span>
				</td>
			  </tr>

			  <tr ng-show="workflow.createdOn">
			  	<td>Created on</td>
			  	<td>{{workflow.createdOn|date:'short'}} by {{workflow.createdBy_info.firstName}} {{workflow.createdBy_info.lastName}}</td>
			  </tr>

			</table>


			<div ng-hide="activity.closedOn" ng-switch="activity.name" >
				<div ng-switch-when="publishRecord">

					<span ng-hide="activity.closedOn">

						<div ng-show="isAssignedToMe(activity)" class="text-right">

							<button type="button" class="btn btn-warning"  data-toggle="modal" data-target="#rejectModal"><i class="fa fa-remove"></i> Request Changes / Reject </button>
                            <a type="button" class="btn btn-default bg-draft" ng-href="/submit/{{onlineReportingURL(workflow.data.metadata.schema)}}{{workflow.data.metadata.schema}}/{{workflow.data.identifier}}?workflowId={{workflow._id}}"
                            ><i class="fa fa-edit"></i> Edit</a>
                            <button type="button" class="btn btn-default bg-published" ng-click="updateActivity({ action : 'approve' })"><i class="fa fa-check"></i> Approve</button>
						</div>
						<h4 ng-hide="isAssignedToMe(activity)">
                            <p class="alert alert-danger">
    							Waiting for one of the users below to approve or reject this request.
                                </br></br>
                                <em ng-repeat="user in activity.assignedTo_info">{{user.firstName}} {{user.lastName}}</br></em>
                            </p>
						</h4>
					</span>

				</div>
			</div>

			<div ng-show="activity.completedOn">

				<span ng-show="activity" ng-switch="activity.result.action">
					<span ng-switch-when="approve"><i class="fa fa-check"></i> Approved</span>
					<span ng-switch-when="reject"><i class="fa fa-remove"></i> Rejected</span>
{'fraction_non_alphanumeric': 0.19037533827509118, 'fraction_numerical': 0.0030591834333450994, 'mean_word_length': 2.9443155452436196, 'pattern_counts': {'":': 0, '<': 270, '<?xml version=': 0, '>': 270, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '669074', 'n_tokens_mistral': 3415, 'n_tokens_neox': 2827, 'n_words': 444}