diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 508da90b..ad97155e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: KEY: ${{ secrets.PASS }} PORT: 22 source: ./ - target: /var/www/czqoprod/ + target: /var/www/czqo-web-prod/ - name: Set permissions uses: appleboy/ssh-action@master @@ -29,7 +29,7 @@ jobs: KEY: ${{ secrets.PASS }} PORT: 22 script: | - cd /var/www/czqoprod/ + cd /var/www/czqo-web-prod/ chown -R mufassil:www-data . find . -type f -exec chmod 664 {} \; find . -type d -exec chmod 775 {} \; diff --git a/app/Jobs/ProcessRosterInactivity.php b/app/Jobs/ProcessRosterInactivity.php index 415fb02a..bed865bf 100644 --- a/app/Jobs/ProcessRosterInactivity.php +++ b/app/Jobs/ProcessRosterInactivity.php @@ -57,7 +57,7 @@ public function handle() } if ($rosterMember->active) { - if ($rosterMember->currency < 6.0) { + if ($rosterMember->currency < 3.0) { $discord = new DiscordClient(); $discord_user_id = $rosterMember->user->discord_user_id; if ($discord_user_id && $rosterMember->user->member_of_czqo){ diff --git a/app/Models/Roster/RosterMember.php b/app/Models/Roster/RosterMember.php index 94af4dd2..b82db130 100644 --- a/app/Models/Roster/RosterMember.php +++ b/app/Models/Roster/RosterMember.php @@ -126,8 +126,8 @@ public function meetsActivityRequirement() return true; } - //If they are meet activity requirements why send em an email? - if ($this->currency >= 6.0) { + //If they are meeting activity requirements why send em an email? + if ($this->currency >= 3.0) { return true; } diff --git a/resources/views/my/index.blade.php b/resources/views/my/index.blade.php index ef59b324..788547d7 100644 --- a/resources/views/my/index.blade.php +++ b/resources/views/my/index.blade.php @@ -1,720 +1,805 @@ @extends('layouts.primary', ['solidNavBar' => false]) @section('title', 'myCZQO - ') @section('content') -
{{$quote[0]->quote}} ~ {{$quote[0]->author}}
- @endif + + //list of grettings as arary + + $greeting = [ + 'aloha' => 'Aloha', + 'ahoy' => 'Ahoy', + 'bonjour' => 'Bonjour', + 'gday' => "G'day", + 'hello' => 'Hello', + 'hey' => 'Hey', + 'hi' => 'Hi', + 'hola' => 'Hola', + 'howdy' => 'Howdy', + 'guten_tag' => 'Guten Tag', + 'grüß_dich' => 'Grüß Dich', + ]; + + //echo greeting + echo randomArrayVar($greeting); + ?> + {{ auth()->user()->fullName('F') }}! + + @if (isset($quote)) +{{ $quote[0]->quote }} ~ {{ $quote[0]->author }}
+ @endif +You have not linked your Discord account.
+ + + + + + + Link your Discord + + + @else +{{ auth()->user()->discord_username }}
+ @if (!auth()->user()->member_of_czqo) + + + + + + + Join Our Discord + + + @endif + + + + + + + Unlink + - -+ @if (auth()->user()->bio) + {{ auth()->user()->bio }} + @else + You have no biography. + @endif +
+ + + + + + + Edit + +You have not linked your Discord account.
- - - - - - - Link your Discord - - - @else -{{auth()->user()->discord_username}}
- @if(!auth()->user()->member_of_czqo) - - - - - - - Join Our Discord - - - @endif - - - - - - - Unlink - - - @endif -- @if (auth()->user()->bio) - {{auth()->user()->bio}} - @else - You have no biography. - @endif -
- - - - - - - Edit - - -#{{auth()->user()->pendingApplication()->reference_id}} - submitted {{auth()->user()->pendingApplication()->created_at->diffForHumans()}}
- - @endif - @if ($studentProfile = auth()->user()->studentProfile && $cert = auth()->user()->studentProfile->soloCertification()) -{{ $cert->expires->diffInDays(Carbon\Carbon::now()) <= 2 ? 'Contact your instructor to request an extension or proceed to an OTS assessment.' : 'Your use of this solo certification is bound to our policies and VATSIM\'s GRP. Your instructor will give you more information.'}}
-+ #{{ auth()->user()->pendingApplication()->reference_id }} - submitted + {{ auth()->user()->pendingApplication()->created_at->diffForHumans() }}
+ + @endif + @if ( + $studentProfile = + auth()->user()->studentProfile && + ($cert = auth()->user()->studentProfile->soloCertification())) ++ {{ $cert->expires->diffInDays(Carbon\Carbon::now()) <= 2 ? 'Contact your instructor to request an extension or proceed to an OTS assessment.' : 'Your use of this solo certification is bound to our policies and VATSIM\'s GRP. Your instructor will give you more information.' }} +
+