A free open source IT asset/license management system
Fixed buttons
snipe4efba9178d01
diff --git a/resources/views/blade/dashboard/recent-activity.blade.php b/resources/views/blade/dashboard/recent-activity.blade.phpindex f54e159f3a..4b612b543d 100644--- a/resources/views/blade/dashboard/recent-activity.blade.php+++ b/resources/views/blade/dashboard/recent-activity.blade.php@@ -4,7 +4,7 @@gate as defense in depth for direct-invocation cases. Scopedviewers (canViewUsersAndCheckoutables but not activity.view) getresults filtered server-side to actionlogs whose item_type or- target_type they can view. See Api\ReportsController@index. --}}+ target_type they can view. See Api\DashboardController@activity. --}}@can('canViewUsersAndCheckoutables')<div class="box box-default"><div class="box-header with-border">@@ -46,8 +46,13 @@</div></div></div>+ {{-- reports.activity is widened to accept scoped viewers via+ canViewUsersAndCheckoutables, backed by+ api.dashboard.activity for callers without activity.view.+ CSV export and other admin UI on the report page stay+ gated inside that view. --}}<div class="box-footer text-center">- <a href="{{ route('reports.activity') }}" class="btn btn-theme btn-sm" style="width: 100%">{{ trans('general.viewall') }}</a>+ <a href="{{ route('reports.activity') }}" class="btn btn-theme btn-sm btn-block">{{ trans('general.viewall') }}</a></div></div>@endcandiff --git a/resources/views/blade/dashboard/today-calendar.blade.php b/resources/views/blade/dashboard/today-calendar.blade.phpindex c521837815..39e0f3c4ae 100644--- a/resources/views/blade/dashboard/today-calendar.blade.php+++ b/resources/views/blade/dashboard/today-calendar.blade.php@@ -23,7 +23,7 @@dashboard panels. Shown only when the widget'sonFetchMeta reports the API hit its row cap. --}}<div id="dashboard-today-more" class="box-footer text-center" style="display:none;">- <a href="{{ route('calendar.index') }}" class="btn btn-theme btn-sm" style="width: 100%" id="dashboard-today-more-link"></a>+ <a href="{{ route('calendar.index') }}" class="btn btn-theme btn-sm btn-block" id="dashboard-today-more-link"></a></div></div>@endcan