refactor: refactored auth strings

This commit is contained in:
2022-03-19 19:06:25 +00:00
committed by Miguel Nogueira
parent e0844a7a2b
commit 6338b3ef8b
12 changed files with 85 additions and 76 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ \Illuminate\Support\Facades\App::getLocale() }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@@ -6,8 +6,8 @@
<li class="d-inline-block">
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc"><i class="fas fa-code-branch"></i> Gitea</a>
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc/issues"><i class="fas fa-bug"></i> Issue Tracker</a>
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc"><i class="fas fa-code-branch"></i> {{ __('Gitea') }}</a>
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc/issues"><i class="fas fa-bug"></i> {{ __('Issue Tracker') }}</a>
</li>
@@ -16,7 +16,7 @@
<div class="col-4 d-inline-block">
<p>&copy; Miguel N. {{ \Carbon\Carbon::now()->year }}&mdash; <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU General Public License</a></p>
<p>&copy; Miguel N. {{ \Carbon\Carbon::now()->year }}&mdash; <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">{{ __('GNU General Public License') }}</a></p>
</div>

View File

@@ -3,7 +3,7 @@
<!-- Copyright - DO NOT REMOVE WITHOUT PERMISSION -->
<div class="footer-copyright text-center py-3">
<a href="{{ config('app.url') }}"> {{ config('app.name') . ' ' . config('app.release') }} &copy; 2019-{{ now()->year }} - {{__('messages.footer_copy')}}. Took {{ round(microtime(true) - LARAVEL_START, 3) }} seconds.</a>
<a href="{{ config('app.url') }}"> {{ config('app.name') . ' ' . config('app.release') }} &copy; {{ now()->year }} - {{__('messages.footer_copy')}}. Took {{ round(microtime(true) - LARAVEL_START, 3) }} seconds.</a>
</div>
<!-- Copyright -->
<!-- GNU General Public License (https://www.gnu.org/licenses/gpl-3.0.en.html) Built by Miguel N. -->

View File

@@ -1,6 +1,6 @@
<!doctype HTML>
<html lang="en">
<html lang="{{ App::getLocale() }}">
<head>
@@ -25,8 +25,8 @@
<title>{{config('app.name')}} | {{ __('Home') }}</title>
<meta name="title" content="Games Club Oficial | Página Inicial">
<meta name="description" content="Games Club Oficial - Onde sua diversão acontece!">
<meta name="title" content="Games Club Oficial | {{ __('Página Inicial') }}">
<meta name="description" content="{{ __('Games Club Oficial - Onde sua diversão acontece!') }}">
<!-- Font Awesome -->
@@ -79,23 +79,23 @@
<ul class="navbar-nav ml-auto float-right">
@guest
<li class="nav-item">
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('login')}}'"><i class="fas fa-sign-in-alt"></i> {{__('messages.login')}}</button>
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('login')}}'"><i class="fas fa-sign-in-alt"></i> {{__('Sign in')}}</button>
</li>
<li class="nav-item">
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('register')}}'"><i class="fas fa-plus"></i> {{__('messages.register')}}</button>
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('register')}}'"><i class="fas fa-plus"></i> {{__('Register')}}</button>
</li>
@endguest
@auth
<li class="nav-item">
<button type="button" class="btn btn-info" onclick="window.location.href='{{route('dashboard')}}'">{{__('messages.dashboard')}}</button>
<button type="button" class="btn btn-info" onclick="window.location.href='{{route('dashboard')}}'">{{__('Dashboard')}}</button>
</li>
<li class="nav-item">
<form method="POST" action="{{route('logout')}}">
@csrf
<button type="submit" class="btn btn-danger"><i class="fa fa-power-off"></i>{{__('messages.logout')}}</button>
<button type="submit" class="btn btn-danger"><i class="fa fa-power-off"></i>{{__('Sign out')}}</button>
</form>
</li>
@endauth
@@ -145,7 +145,7 @@
<img class="d-inline mb-4" src="{{ asset('img/500.svg') }}" width="350px" alt="500 illustration">
<h1>{{ __('500 - Internal Server Error') }}</h1>
<p>{{ __('Whelp! It looks like our servers went up in flames. Don\'t worry, it\'s not your fault. Our developers have been notified & are already extinguishing the flames and repairing the damage. ') }}</p>
<p>{{ __("Whelp! It looks like our servers went up in flames. Don't worry, it's not your fault. Our developers have been notified & are already extinguishing the flames and repairing the damage. ") }}</p>
@break;
@case(401)