extended view
This commit is contained in:
parent
908bdb59cb
commit
c1230087e6
@ -30,7 +30,9 @@ It provides an integration with Drone CI promote feature to trigger a pipeline r
|
|||||||
There are just two permissions:
|
There are just two permissions:
|
||||||
|
|
||||||
- **manage.view** - provides access to the Drone deploy list
|
- **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.deploy** - provides access to trigger a new deploy
|
||||||
|
- **manage.settings** - provides access to configure the addon
|
||||||
|
|
||||||
### Drone CI pipeline example
|
### Drone CI pipeline example
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// Module ACL definitions.
|
// Module ACL definitions.
|
||||||
$this("acl")->addResource('drone', [
|
$this("acl")->addResource('drone', [
|
||||||
'manage.view',
|
'manage.view',
|
||||||
|
'manage.extended_view',
|
||||||
'manage.deploy',
|
'manage.deploy',
|
||||||
'manage.settings'
|
'manage.settings'
|
||||||
]);
|
]);
|
||||||
|
@ -108,6 +108,7 @@ pre h2.failure {
|
|||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="70">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="70">
|
||||||
@lang('State')
|
@lang('State')
|
||||||
</th>
|
</th>
|
||||||
|
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
|
||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
|
||||||
@lang('Build') #
|
@lang('Build') #
|
||||||
</th>
|
</th>
|
||||||
@ -117,6 +118,7 @@ pre h2.failure {
|
|||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="450">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="450">
|
||||||
@lang('Title')
|
@lang('Title')
|
||||||
</th>
|
</th>
|
||||||
|
@endif
|
||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="120">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="120">
|
||||||
@lang('Created')
|
@lang('Created')
|
||||||
</th>
|
</th>
|
||||||
@ -126,9 +128,11 @@ pre h2.failure {
|
|||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="90">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="90">
|
||||||
@lang('Deploy time')
|
@lang('Deploy time')
|
||||||
</th>
|
</th>
|
||||||
|
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
|
||||||
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
|
<th class="uk-text-small uk-link-muted uk-noselect" width="50">
|
||||||
@lang('Log')
|
@lang('Log')
|
||||||
</th>
|
</th>
|
||||||
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<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>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
@if($app->module('cockpit')->hasaccess('drone', 'manage.extended_view'))
|
||||||
<td>{ deploy.number }</td>
|
<td>{ deploy.number }</td>
|
||||||
<td>{ deploy.event }</td>
|
<td>{ deploy.event }</td>
|
||||||
<td>{ deploy.message }</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.created_at }</span></td>
|
||||||
<td><span class="uk-badge uk-badge-outline uk-text-muted">{ deploy.updated_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>
|
<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>
|
<td><a onclick="{ showdeployLog }"><img src="@url('assets:app/media/icons/text.svg')" style="height: 25px;"></a></td>
|
||||||
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user