first steps

This commit is contained in:
1day2die 2021-12-06 17:11:48 +01:00
parent bd6cec92ea
commit 9644fe0fe2
5 changed files with 49 additions and 24 deletions

View file

@ -81,7 +81,7 @@ return [
|
*/
'locale' => 'en',
'locale' => env('LOCALE', 'en'),
/*
|--------------------------------------------------------------------------

25
resources/lang/de.json Normal file
View file

@ -0,0 +1,25 @@
{
"Activity Logs": "Aktivitäts logs",
"No recent activity from cronjobs": "Keine neuen aktivitäten von Cronjobs",
"Check the docs for it here": "Zur Dokumentation",
"Are cronjobs running?": "Sind die Cronjobs gestartet?",
"Causer": "Verursacher",
"Description": "Beschreibung",
"Created at": "Erstellt am",
"Edit Configuration": "Einstellungen bearbeiten",
"Text Field": "Textfeld",
"Cancel": "Abbrechen",
"Save": "Speichern",
"true": "wahr",
"false": "falsch",
"Configurations": "Einstellungen",
"Dashboard": "Dashboard",
"Key": "Schlüssel",
"Value": "Wert",
"Type": "Typ"
}

View file

@ -6,12 +6,12 @@
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Activity Logs</h1>
<h1>{{ __('Activity Logs')}}</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
<li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.activitylogs.index')}}">Activity Logs</a>
<li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.activitylogs.index')}}">{{ __('Activity Logs')}}</a>
</li>
</ol>
</div>
@ -32,8 +32,8 @@
</div>
@else
<div class="callout callout-danger">
<h4>No recent activity from cronjobs</h4>
<p>Are cronjobs running? <a class="text-primary" target="_blank" href="https://github.com/ControlPanel-gg/dashboard/wiki/Installation#crontab-configuration">Check the docs for it here</a></p>
<h4>{{ __('No recent activity from cronjobs')}}</h4>
<p>{{ __('Are cronjobs running?')}} <a class="text-primary" target="_blank" href="https://github.com/ControlPanel-gg/dashboard/wiki/Installation#crontab-configuration">{{ __('Check the docs for it here')}}</a></p>
</div>
@endif
@ -42,7 +42,7 @@
<div class="card">
<div class="card-header">
<h5 class="card-title"><i class="fas fa-history mr-2"></i>Activity Logs</h5>
<h5 class="card-title"><i class="fas fa-history mr-2"></i>{{ __('Activity Logs')}}</h5>
</div>
<div class="card-body table-responsive">
@ -63,16 +63,16 @@
<table class="table table-sm table-striped">
<thead>
<tr>
<th>Causer</th>
<th>Description</th>
<th>Created At</th>
<th>{{ __('Causer') }}</th>
<th>{{ __('Description') }}</th>
<th>{{ __('Created at') }}</th>
</tr>
</thead>
<tbody>
@foreach($logs as $log)
<tr>
<td> @if($log->causer) <a href='/admin/users/{{$log->causer_id}}'> {{json_decode($log->causer)->name}}
@else
<td> @if($log->causer) <a href='/admin/users/{{$log->causer_id}}'> {{json_decode($log->causer)->name}}
@else
System
@endif</td>
<td>

View file

@ -8,14 +8,14 @@
@method('PATCH')
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Edit Configuration</h4>
<h4 class="modal-title">{{__('Edit Configuration')}}</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<div class="form-group">
<label id="keyLabel" for="value">Text Field</label>
<label id="keyLabel" for="value">{{__('Text Field')}}</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">
@ -32,8 +32,8 @@
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">{{__('Cancel')}}</button>
<button type="submit" class="btn btn-primary">{{__('Save')}}'</button>
</div>
</form>
</div>

View file

@ -6,13 +6,13 @@
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Configurations</h1>
<h1>{{__('Configurations')}}</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
<li class="breadcrumb-item"><a href="{{route('home')}}"{{__('Dashboard')}}</a></li>
<li class="breadcrumb-item"><a class="text-muted"
href="{{route('admin.configurations.index')}}">Configurations</a></li>
href="{{route('admin.configurations.index')}}">{{__('Configurations')}}</a></li>
</ol>
</div>
</div>
@ -28,7 +28,7 @@
<div class="card-header">
<div class="d-flex justify-content-between">
<h5 class="card-title"><i class="fas fa-cog mr-2"></i>Configurations</h5>
<h5 class="card-title"><i class="fas fa-cog mr-2"></i>{{__('Configurations')}}</h5>
</div>
</div>
@ -37,11 +37,11 @@
<table id="datatable" class="table table-striped">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
<th>Type</th>
<th width="600">Description</th>
<th>Created at</th>
<th>{{__('Key')}}</th>
<th>{{__('Value')}}</th>
<th>{{__('Type')}}</th>
<th width="600">{{__('Description')}}</th>
<th>{{__('Created at')}}</th>
<th></th>
</tr>
</thead>