mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Merge branch 'develop' of https://github.com/snipe/snipe-it into develop
This commit is contained in:
commit
b8f8d49927
|
@ -29,6 +29,18 @@ class LicenseSeat extends SnipeModel implements ICompanyableChild
|
|||
return ['asset', 'license'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user should be required to accept the license
|
||||
*
|
||||
* @author A. Gianotto <snipe@snipe.net>
|
||||
* @since [v4.0]
|
||||
* @return boolean
|
||||
*/
|
||||
public function requireAcceptance()
|
||||
{
|
||||
return $this->license->category->require_acceptance;
|
||||
}
|
||||
|
||||
public function getEula() {
|
||||
return $this->license->getEula();
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
@if (isset($item->category))
|
||||
| **{{ trans('general.category') }}** | {{ $item->category->name }} |
|
||||
@endif
|
||||
@if ($target->can('update', $item))
|
||||
@if ($target->can('view', $item))
|
||||
| **Key** | {{ $item->serial }} |
|
||||
@endif
|
||||
@if ($note)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ $url }}" class="button button-{{ $color or 'blue' }}" target="_blank">{{ $slot }}</a>
|
||||
<a href="{{ $url }}" class="button button-{{ $color ?? 'blue' }}" target="_blank">{{ $slot }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue