refs #5394 adaptando propuesta al código actual
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-05-03 12:25:10 +02:00
parent 50aeb386da
commit ae323e288a
1 changed files with 41 additions and 31 deletions

View File

@ -28,7 +28,7 @@
<img <img
ng-if="::log.user.image" ng-if="::log.user.image"
ng-src="/api/Images/user/160x160/{{::log.userFk}}/download?access_token={{::$ctrl.vnToken.token}}" ng-src="/api/Images/user/160x160/{{::log.userFk}}/download?access_token={{::$ctrl.vnToken.token}}"
ng-click="$ctrl.showWorkerDescriptor($event, log)"> ng-click="::$ctrl.showDescriptor('Worker', $event, log.userFk)">
</img> </img>
</div> </div>
<div class="arrow bg-panel"></div> <div class="arrow bg-panel"></div>
@ -80,37 +80,31 @@
title="{{::prop.name}}"> title="{{::prop.name}}">
{{::prop.nameI18n}}: {{::prop.nameI18n}}:
</span> </span>
<vn-json-value value="::$ctrl.mainVal(prop, log.action)"></vn-json-value><span ng-if="::!$last">,</span> <vn-json-value ng-class="::{'link': prop.descriptor}"
ng-click="::$ctrl.showDescriptor(prop.descriptor, $event, $ctrl.mainVal(prop, log.action))"
value="::$ctrl.mainVal(prop, log.action)">
</vn-json-value>
<span ng-if="::!$last">,</span>
</span> </span>
</vn-td> <div ng-if="log.expand"
<vn-td ng-if="$ctrl.showModelName"> class="expanded-json">
{{::log.changedModel}} <div ng-repeat="prop in ::log.props">
</vn-td> <span class="json-field"
<vn-td shrink translate> title="{{::prop.name}}">
{{::$ctrl.actionsText[log.action]}} {{::prop.nameI18n}}:
</vn-td> </span>
<vn-td ng-if="$ctrl.showModelName"> <vn-json-value
{{::log.changedModelValue}} ng-class="::{'link': prop.descriptor}"
</vn-td> ng-click="::$ctrl.showDescriptor(prop.descriptor, $event, $ctrl.mainVal(prop, log.action))"
<vn-td expand> value="::$ctrl.mainVal(prop, log.action)"></vn-json-value>
<table class="attributes"> <span ng-if="::log.action == 'update'">
<thead> <vn-json-value
<tr> ng-class="::{'link': prop.descriptor}"
<th translate class="field">Field</th> ng-click="::$ctrl.showDescriptor(prop.descriptor, $event, prop.old)"
<th translate>Before</th> value="::prop.old">
<th translate>After</th> </vn-json-value>
</tr> </span>
</thead> </div>
<tbody>
<tr ng-repeat="prop in ::log.props">
<td class="field">{{prop.name}}</td>
<td class="before"><span ng-class="{'link': prop.descriptor}" ng-click="$ctrl.showDescriptor(prop.descriptor, $event, prop.old)">{{prop.old}}</span></td>
<td class="after"><span ng-class="{'link': prop.descriptor}" ng-click="$ctrl.showDescriptor(prop.descriptor, $event, prop.new)">{{prop.new}}</span></td>
</tr>
</tbody>
</table>
<div ng-if="log.description != null">
{{::log.description}}
</div> </div>
</span> </span>
<span ng-if="::!log.props.length" <span ng-if="::!log.props.length"
@ -220,7 +214,23 @@
</vn-side-menu> </vn-side-menu>
<vn-worker-descriptor-popover vn-id="Worker"> <vn-worker-descriptor-popover vn-id="Worker">
</vn-worker-descriptor-popover> </vn-worker-descriptor-popover>
<vn-client-descriptor-popover vn-id="Client">
</vn-client-descriptor-popover>
<vn-entry-descriptor-popover vn-id="Entry">
</vn-entry-descriptor-popover>
<vn-item-descriptor-popover vn-id="Item"> <vn-item-descriptor-popover vn-id="Item">
</vn-item-descriptor-popover> </vn-item-descriptor-popover>
<vn-ticket-descriptor-popover vn-id="Ticket"> <vn-ticket-descriptor-popover vn-id="Ticket">
</vn-ticket-descriptor-popover> </vn-ticket-descriptor-popover>
<vn-zone-descriptor-popover vn-id="Zone">
</vn-zone-descriptor-popover>
<vn-travel-descriptor-popover vn-id="Travel">
</vn-travel-descriptor-popover>
<vn-supplier-descriptor-popover vn-id="Supplier">
</vn-supplier-descriptor-popover>
<vn-route-descriptor-popover vn-id="Route">
</vn-route-descriptor-popover>
<vn-invoice-out-descriptor-popover vn-id="InvoiceOut">
</vn-invoice-out-descriptor-popover>
<vn-invoice-in-descriptor-popover vn-id="InvoiceIn">
</vn-invoice-in-descriptor-popover>