Skip to content

Commit

Permalink
refactor: fix blade formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored and github-actions[bot] committed Oct 25, 2024
1 parent 9a89295 commit f84baec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
9 changes: 7 additions & 2 deletions resources/views/account/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,19 @@
<div class="form-group row">
<label class="col-md-2 col-form-label">Setting</label>
<div class="col-md-10">
{!! Form::select('allow_character_likes',['0' => 'Do not allow other users to ' . __('character_likes.like') . ' your characters.', '1' => 'Other users can ' . __('character_likes.like') . ' your characters.',],Auth::user()->settings->allow_character_likes,['class' => 'form-control'],) !!}
{!! Form::select(
'allow_character_likes',
['0' => 'Do not allow other users to ' . __('character_likes.like') . ' your characters.', '1' => 'Other users can ' . __('character_likes.like') . ' your characters.'],
Auth::user()->settings->allow_character_likes,
['class' => 'form-control'],
) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
</div>
{!! Form::close() !!}
</div>
</div>

<div class="card p-3 mb-2">
<h3>Birthday Publicity</h3>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/browse/_sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<div class="sidebar-item"><a href="{{ url('myos') }}" class="{{ set_active('myos*') }}">MYO Slots</a></div>
</li>
@if (Settings::get('character_likes_leaderboard_enable') && Auth::check())
<li class="sidebar-section">
<div class="sidebar-section-header">Character {{ ucfirst(__('character_likes.likes')) }}</div>
<div class="sidebar-item"><a href="{{ url(__('character_likes.likes').'-leaderboard') }}" class="{{ set_active(__('character_likes.likes').'-leaderboard*') }}">{{ ucfirst(__('character_likes.likes')) }} Leaderboard</a></div>
</li>
<li class="sidebar-section">
<div class="sidebar-section-header">Character {{ ucfirst(__('character_likes.likes')) }}</div>
<div class="sidebar-item"><a href="{{ url(__('character_likes.likes') . '-leaderboard') }}" class="{{ set_active(__('character_likes.likes') . '-leaderboard*') }}">{{ ucfirst(__('character_likes.likes')) }} Leaderboard</a></div>
</li>
@endif
@if (isset($sublists) && $sublists->count() > 0)
<li class="sidebar-section">
Expand Down
8 changes: 2 additions & 6 deletions resources/views/character/_header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@
<h1 class="mb-0">
@if (!$character->is_myo_slot)
@if ($character->user && $character->user->settings->allow_character_likes)
<div class="btn btn-primary float-right ml-2" data-toggle="tooltip"
title="{{ ucfirst(__('character_likes.liked')) }}
<div class="btn btn-primary float-right ml-2" data-toggle="tooltip" title="{{ ucfirst(__('character_likes.liked')) }}
{{ $character->likeTotal }} times">
<i class="fas fa-star"></i> {{ $character->likeTotal }}</a>
</div>
@endif
@if (Auth::check() && $character->user &&
$character->user->settings->allow_character_likes &&
Auth::user()->canLike($character) &&
Auth::user()->id != $character->user_id)
@if (Auth::check() && $character->user && $character->user->settings->allow_character_likes && Auth::user()->canLike($character) && Auth::user()->id != $character->user_id)
<span class="float-right float-top ml-2 align-content-center">
{!! Form::open(['url' => $character->url . '/like']) !!}
{!! Form::submit(ucfirst(__('character_likes.like')), ['class' => 'btn btn-success']) !!}
Expand Down

0 comments on commit f84baec

Please sign in to comment.