Commit e044fd67 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed loading of now obesolete lib.js

parent 602e8056
......@@ -130,7 +130,6 @@ class MailController extends Controller
return view('kontakt.kontakt')
->with('title', 'Kontakt')
->with('js', ['lib.js'])
->with($messageType, $returnMessage);
}
......
......@@ -45,6 +45,5 @@
<p>{!! trans('kontakt.letter.2') !!}</p>
<address>{!! trans('kontakt.letter.3') !!}</address>
</div>
<script src="{{ mix('js/lib.js') }}"></script>
</div>
@endsection
\ No newline at end of file
......@@ -3,60 +3,59 @@
@section('title', $title )
@section('content')
<h1>{{ trans('languages.header') }}</h1>
<p>{{ trans('languages.beschreibung.1') }}</p>
<p>{{ trans('languages.beschreibung.2') }}</p>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="{{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}%">
{{ trans('languages.progress', ['uebersetzteTexte'=> ($langTexts[$to]+$new), 'textCount'=>count($sum), 'percentage'=>round(100 * (($langTexts[$to]+$new) / count($sum)))]) }}
</div>
<h1>{{ trans('languages.header') }}</h1>
<p>{{ trans('languages.beschreibung.1') }}</p>
<p>{{ trans('languages.beschreibung.2') }}</p>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="{{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}%">
{{ trans('languages.progress', ['uebersetzteTexte'=> ($langTexts[$to]+$new), 'textCount'=>count($sum), 'percentage'=>round(100 * (($langTexts[$to]+$new) / count($sum)))]) }}
</div>
<h1>{{$filename}}</h1>
<form id="submit" method="POST">
<input type="hidden" name="filename" value="{{$filename}}" />
</form>
<table class="table">
<thead>
<tr>
<th>#ID</th>
<th>{{$to}}</th>
@foreach($langs as $lang => $value)
<th>{{$lang}}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($texts as $name => $langValues)
@if($langValues === "")
<tr>
<td class="name language-name">{{preg_replace("/(\s*).*#(.*)$/si", "$1$2", $name)}}</td>
<td></td>
<td></td>
</tr>
</div>
<h1>{{$filename}}</h1>
<form id="submit" method="POST">
<input type="hidden" name="filename" value="{{$filename}}" />
</form>
<table class="table">
<thead>
<tr>
<th>#ID</th>
<th>{{$to}}</th>
@foreach($langs as $lang => $value)
<th>{{$lang}}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($texts as $name => $langValues)
@if($langValues === "")
<tr>
<td class="name language-name">{{preg_replace("/(\s*).*#(.*)$/si", "$1$2", $name)}}</td>
<td></td>
<td></td>
</tr>
@else
<tr>
<td class="name language-name">{{preg_replace("/(\s*).*#(.*)$/si", "$1$2", $name)}}</td>
<td>
@if(isset($langValues[$to]))
<textarea class="language-text-area" type="text" rows="1" cols="50" form="submit" name="{{ base64_encode($name) }}">{{$langValues[$to]}}</textarea>
@else
<tr>
<td class="name language-name">{{preg_replace("/(\s*).*#(.*)$/si", "$1$2", $name)}}</td>
<td>
@if(isset($langValues[$to]))
<textarea class="language-text-area" type="text" rows="1" cols="50" form="submit" name="{{ base64_encode($name) }}">{{$langValues[$to]}}</textarea>
@else
<textarea class="language-text-area" rows="1" cols="50" form="submit" name="{{base64_encode("_new_" . $name)}}"></textarea>
@endif
</td>
@foreach($langs as $lang => $value)
<td>{!! $langValues[$lang] ?? "" !!}</td>
@endforeach
</tr>
<textarea class="language-text-area" rows="1" cols="50" form="submit" name="{{base64_encode("_new_" . $name)}}"></textarea>
@endif
</td>
@foreach($langs as $lang => $value)
<td>{!! $langValues[$lang] ?? "" !!}</td>
@endforeach
</tbody>
</table>
<p>{{ trans('languages.hinweis.1') }}</p>
<p>{!! trans('languages.hinweis.2') !!}</p>
<p>{!! trans('languages.hinweis.3') !!}</p>
<p>{!! trans('languages.email') !!}</p>
<p><input type="email" name="email" form="submit" value="{{$email}}"/></p>
<button class="btn btn-success" type="submit" form="submit">Daten übermitteln</button>
<script src="{{ mix('js/lib.js') }}"></script>
<script src="{{ mix('js/editLanguage.js') }}"></script>
@endsection
</tr>
@endif
@endforeach
</tbody>
</table>
<p>{{ trans('languages.hinweis.1') }}</p>
<p>{!! trans('languages.hinweis.2') !!}</p>
<p>{!! trans('languages.hinweis.3') !!}</p>
<p>{!! trans('languages.email') !!}</p>
<p><input type="email" name="email" form="submit" value="{{$email}}" /></p>
<button class="btn btn-success" type="submit" form="submit">Daten übermitteln</button>
<script src="{{ mix('js/editLanguage.js') }}"></script>
@endsection
\ No newline at end of file
......@@ -3,7 +3,7 @@
@section('title', $title )
@section('content')
<h1>{{ trans('languages.header') }}</h1>
<h1>{{ trans('languages.header') }}</h1>
<?php /*
<!--
<div class="progress">
......@@ -12,59 +12,59 @@
</div>
</div>
-->
*/?>
<h2>Aktuelle Datei: {{$filename}}</h2>
<form id="submit" method="POST">
<input type="hidden" name="filename" value="{{$filename}}" />
</form>
<p style="display: inline;"> Andere Datei auswählen: </p>
<select name="chosenFile" form="submit" onchange="this.form.submit()" type="submit">
*/ ?>
<h2>Aktuelle Datei: {{$filename}}</h2>
<form id="submit" method="POST">
<input type="hidden" name="filename" value="{{$filename}}" />
</form>
<p style="display: inline;"> Andere Datei auswählen: </p>
<select name="chosenFile" form="submit" onchange="this.form.submit()" type="submit">
@foreach($otherFiles as $otherFile)
<option value={{$otherFile}}>{{ $otherFile }}</option>
<option value={{$otherFile}}>{{ $otherFile }}</option>
@endforeach
</select>
<table class="table">
<thead>
<tr>
<th>#ID</th>
@foreach($to as $t)
<th>
{{$t}}
@if(in_array($t, $recentlyChangedFiles))
<span style="background-color: Khaki;font-weight: normal;"><u><br>{{ trans('languages.synoptic.hinweis') }}</u><br></span>
@endif
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($texts as $key => $language)
<tr> <!--Key -->
<td class="name language-name">{{$key}}</td>
@foreach($language as $lang => $languageValue)
@if($languageValue !== "")
<td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea>
</td>
@else
<td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode("_new_".$lang."_".$key)}}"></textarea>
</td>
@endif
@endforeach
</tr>
</select>
<table class="table">
<thead>
<tr>
<th>#ID</th>
@foreach($to as $t)
<th>
{{$t}}
@if(in_array($t, $recentlyChangedFiles))
<span style="background-color: Khaki;font-weight: normal;"><u><br>{{ trans('languages.synoptic.hinweis') }}</u><br></span>
@endif
</th>
@endforeach
</tbody>
</tr>
</thead>
<tbody>
@foreach($texts as $key => $language)
<tr>
<!--Key -->
<td class="name language-name">{{$key}}</td>
@foreach($language as $lang => $languageValue)
@if($languageValue !== "")
<td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea>
</td>
@else
<td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode("_new_".$lang."_".$key)}}"></textarea>
</td>
@endif
@endforeach
</tr>
@endforeach
</tbody>
</table>
</table>
<!--
<p>{{ trans('languages.hinweis.1') }}</p>
<p>{!! trans('languages.hinweis.2') !!}</p>
<p>{!! trans('languages.hinweis.3') !!}</p>
<p>{!! trans('languages.email') !!}</p>
-->
<button name="download" class="btn btn-success" type="submit" form="submit">Dateien herunterladen</button>
<button name="nextpage" class="btn btn-success" type="submit" form="submit">Nächste Seite</button>
<script src="{{ mix('js/lib.js') }}"></script>
<script src="{{ mix('js/editLanguage.js') }}"></script>
@endsection
<button name="download" class="btn btn-success" type="submit" form="submit">Dateien herunterladen</button>
<button name="nextpage" class="btn btn-success" type="submit" form="submit">Nächste Seite</button>
<script src="{{ mix('js/editLanguage.js') }}"></script>
@endsection
\ No newline at end of file
......@@ -69,7 +69,6 @@
@endif
@include('parts.sidebar', ['id' => 'resultPageSideBar'])
@include('parts.sidebar-opener', ['class' => 'fixed'])
<script src="{{ mix('js/lib.js') }}"></script>
<script src="{{ mix('js/scriptResultPage.js') }}" defer></script>
</body>
......
<!DOCTYPE html>
<html lang="{!! trans('staticPages.meta.language') !!}">
<head>
<meta charset="utf-8" />
<title>@yield('title')</title>
<meta name="description" content="{!! trans('staticPages.meta.Description') !!}" />
<meta name="keywords" content="{!! trans('staticPages.meta.Keywords') !!}" />
<meta name="page-topic" content="Dienstleistung" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="7 days" />
<meta name="audience" content="all" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="apple-touch-icon" href="/img/apple/touch-icon.png">
<link rel="apple-touch-icon" sizes="57x57" href="/img/apple/touch-icon-57.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/apple/touch-icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/img/apple/touch-icon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/img/apple/touch-icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/apple/touch-icon-120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple/touch-icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple/touch-icon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple/touch-icon-180.png">
@if(empty(Cookie::get('key')))
<link rel="search" type="application/opensearchdescription+xml" title="{{ trans('staticPages.opensearch') }}" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin')) }}">
@else
<link rel="search" type="application/opensearchdescription+xml" title="{{ trans('staticPages.opensearch') }}" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin', ['key' => Cookie::get('key')])) }}">
@endif
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}"/>
@if (isset($css) && is_array($css))
@foreach($css as $cssFile)
<link href="{{ $cssFile }}" rel="stylesheet" />
@endforeach
@endif
@if(isset($page) && $page === 'startpage')
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/startpage-only-light.css') }}"/>
@endif
@if(Cookie::get('dark_mode') === "2")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager-dark.css') }}"/>
@if(!empty($darkcss) && is_array($darkcss))
@foreach($darkcss as $cssFile)
<link rel="stylesheet" type="text/css" href="{{ $cssFile }}" />
@endforeach
<head>
<meta charset="utf-8" />
<title>@yield('title')</title>
<meta name="description" content="{!! trans('staticPages.meta.Description') !!}" />
<meta name="keywords" content="{!! trans('staticPages.meta.Keywords') !!}" />
<meta name="page-topic" content="Dienstleistung" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="7 days" />
<meta name="audience" content="all" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="apple-touch-icon" href="/img/apple/touch-icon.png">
<link rel="apple-touch-icon" sizes="57x57" href="/img/apple/touch-icon-57.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/apple/touch-icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/img/apple/touch-icon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/img/apple/touch-icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/apple/touch-icon-120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple/touch-icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple/touch-icon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple/touch-icon-180.png">
@if(empty(Cookie::get('key')))
<link rel="search" type="application/opensearchdescription+xml" title="{{ trans('staticPages.opensearch') }}" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin')) }}">
@else
<link rel="search" type="application/opensearchdescription+xml" title="{{ trans('staticPages.opensearch') }}" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin', ['key' => Cookie::get('key')])) }}">
@endif
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}" />
@if (isset($css) && is_array($css))
@foreach($css as $cssFile)
<link href="{{ $cssFile }}" rel="stylesheet" />
@endforeach
@endif
@if(isset($page) && $page === 'startpage')
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/startpage-only-light.css') }}" />
@endif
@if(Cookie::get('dark_mode') === "2")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager-dark.css') }}" />
@if(!empty($darkcss) && is_array($darkcss))
@foreach($darkcss as $cssFile)
<link rel="stylesheet" type="text/css" href="{{ $cssFile }}" />
@endforeach
@endif
@elseif(Cookie::get('dark_mode') === "1")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}" />
@if(isset($page) && $page === 'startpage')
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/startpage-only-light.css') }}" />
@endif
@else
<link type="text/css" rel="stylesheet" media="(prefers-color-scheme:dark)" href="{{ mix('css/themes/metager-dark.css') }}" />
@if(!empty($darkcss) && is_array($darkcss))
@foreach($darkcss as $cssFile)
<link rel="stylesheet" type="text/css" media="(prefers-color-scheme:dark)" href="{{ $cssFile }}" />
@endforeach
@endif
@endif
<link type="text/css" rel="stylesheet" href="{{ mix('css/utility.css') }}" />
<link href="/fonts/liberationsans/stylesheet.css" rel="stylesheet">
<script src="{{ mix('js/utility.js') }}"></script>
@if(!empty($js) && is_array($js))
@foreach($js as $jsFile)
<script src="{{$jsFile}}" async></script>
@endforeach
@endif
</head>
<body>
@if(Request::getHttpHost() === "metager3.de")
<div class="alert alert-info metager3-unstable-warning-static-pages">
{!! @trans('resultPage.metager3') !!}
</div>
@endif
<header>
@yield('homeIcon')
</header>
<div class="wrapper {{$page ?? ''}}">
<main id="main-content">
@if (isset($success))
<div class="alert alert-success" role="alert">{{ $success }}</div>
@endif
@elseif(Cookie::get('dark_mode') === "1")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}"/>
@if(isset($page) && $page === 'startpage')
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/startpage-only-light.css') }}"/>
@if (isset($info))
<div class="alert alert-info" role="alert">{{ $info }}</div>
@endif
@else
<link type="text/css" rel="stylesheet" media="(prefers-color-scheme:dark)" href="{{ mix('css/themes/metager-dark.css') }}"/>
@if(!empty($darkcss) && is_array($darkcss))
@foreach($darkcss as $cssFile)
<link rel="stylesheet" type="text/css" media="(prefers-color-scheme:dark)" href="{{ $cssFile }}" />
@endforeach
@if (isset($warning))
<div class="alert alert-warning" role="alert">{{ $warning }}</div>
@endif
@endif
<link type="text/css" rel="stylesheet" href="{{ mix('css/utility.css') }}" />
<link href="/fonts/liberationsans/stylesheet.css" rel="stylesheet">
<script src="{{ mix('js/lib.js') }}"></script>
<script src="{{ mix('js/utility.js') }}"></script>
@if(!empty($js) && is_array($js))
@foreach($js as $jsFile)
<script src="{{$jsFile}}" async></script>
@endforeach
@endif
</head>
<body>
@if(Request::getHttpHost() === "metager3.de")
<div class="alert alert-info metager3-unstable-warning-static-pages">
{!! @trans('resultPage.metager3') !!}
</div>
@endif
<header>
@yield('homeIcon')
</header>
<div class="wrapper {{$page ?? ''}}">
<main id="main-content">
@if (isset($success))
<div class="alert alert-success" role="alert">{{ $success }}</div>
@endif
@if (isset($info))
<div class="alert alert-info" role="alert">{{ $info }}</div>
@endif
@if (isset($warning))
<div class="alert alert-warning" role="alert">{{ $warning }}</div>
@endif
@if (isset($error))
<div class="alert alert-danger" role="alert">{{ $error }}</div>
@endif
@yield('content')
</main>
</div>
@include('parts.sidebar', ['id' => 'staticPagesSideBar'])
@include('parts.sidebar-opener', ['class' => 'fixed'])
@if (isset($page) && $page === 'startpage')
@include('parts.footer', ['type' => 'startpage', 'id' => 'startPageFooter'])
@else
@include('parts.footer', ['type' => 'subpage', 'id' => 'subPageFooter'])
@endif
</body>
</html>
@if (isset($error))
<div class="alert alert-danger" role="alert">{{ $error }}</div>
@endif
@yield('content')
</main>
</div>
@include('parts.sidebar', ['id' => 'staticPagesSideBar'])
@include('parts.sidebar-opener', ['class' => 'fixed'])
@if (isset($page) && $page === 'startpage')
@include('parts.footer', ['type' => 'startpage', 'id' => 'startPageFooter'])
@else
@include('parts.footer', ['type' => 'subpage', 'id' => 'subPageFooter'])
@endif
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment