extended view

This commit is contained in:
Sebastian Frank 2019-03-08 10:59:56 +01:00
parent 908bdb59cb
commit c1230087e6
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
3 changed files with 11 additions and 0 deletions

View File

@ -30,7 +30,9 @@ It provides an integration with Drone CI promote feature to trigger a pipeline r
There are just two permissions:
- **manage.view** - provides access to the Drone deploy list
- **manage.extended_view** - provides access to drone logs
- **manage.deploy** - provides access to trigger a new deploy
- **manage.settings** - provides access to configure the addon
### Drone CI pipeline example

View File

@ -8,6 +8,7 @@
// Module ACL definitions.
$this("acl")->addResource('drone', [
'manage.view',
'manage.extended_view',
'manage.deploy',
'manage.settings'
]);

View File

@ -108,6 +108,7 @@ pre h2.failure {
<th class="uk-text-small uk-link-muted uk-noselect" width="70">
@lang('State')
</th>
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
@lang('Build') #
</th>
@ -117,6 +118,7 @@ pre h2.failure {
<th class="uk-text-small uk-link-muted uk-noselect" width="450">
@lang('Title')
</th>
@endif
<th class="uk-text-small uk-link-muted uk-noselect" width="120">
@lang('Created')
</th>
@ -126,9 +128,11 @@ pre h2.failure {
<th class="uk-text-small uk-link-muted uk-noselect" width="90">
@lang('Deploy time')
</th>
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
@lang('Log')
</th>
@endif
</tr>
</thead>
<tbody>
@ -141,13 +145,17 @@ pre h2.failure {
<span class="uk-badge uk-text-small uk-badge-warning" if="{deploy.building}"><i class="uk-icon-spinner uk-icon-spin"></i>{ App.i18n.get(deploy.status) }</span>
</a>
</td>
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
<td>{ deploy.number }</td>
<td>{ deploy.event }</td>
<td>{ deploy.message }</td>
@endif
<td><span class="uk-badge uk-badge-outline uk-text-muted">{ deploy.created_at }</span></td>
<td><span class="uk-badge uk-badge-outline uk-text-muted">{ deploy.updated_at }</span></td>
<td><span if="{deploy.deploy_time}">{ deploy.deploy_time }s</span></td>
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
<td><a onclick="{ showdeployLog }"><img src="@url('assets:app/media/icons/text.svg')" style="height: 25px;"></a></td>
@endif
</tr>
</tbody>
</table>