Auslagerung roundTipps nach Tipp, um Wiederverwendung und Caching zu ermöglichen

This commit is contained in:
Torsten 2017-08-31 07:36:27 +02:00
parent b9e4fcca7f
commit 054a8d6f63
8 changed files with 5871 additions and 213 deletions

View file

@ -2,15 +2,17 @@
@section('content')
<section class="jumbotron text-center">
@if($hourDiffToLock<49)
@if (strlen($message_text_tipps)>0)
<div><p class="blink_text">{{ $message_text_tipps }}</p></div>
@endif
@if (strlen($message_text_joker)>0)
<div><p class="blink_text">{{ $message_text_joker }}</p></div>
@endif
@if (strlen($nextRoundLockTime)>0)
<div><p class="blink_text">{{ $nextRoundName }} sperrt sich: {{ $nextRoundLockTime }} ( noch {{ $hourDiffToLock }} Stunden )</p></div>
@if(Auth::check())
@if($hourDiffToLock<49)
@if (strlen($message_text_tipps)>0)
<div><p class="blink_text">{{ $message_text_tipps }}</p></div>
@endif
@if (strlen($message_text_joker)>0)
<div><p class="blink_text">{{ $message_text_joker }}</p></div>
@endif
@if (strlen($nextRoundLockTime)>0)
<div><p class="blink_text">{{ $nextRoundName }} sperrt sich: {{ $nextRoundLockTime }} ( noch {{ $hourDiffToLock }} Stunden )</p></div>
@endif
@endif
@endif
<div class="container">

View file

@ -10,7 +10,7 @@
@if ($r->id == $round->id)
<label>{{$r->name}}</label>
@else
<a href="/users/ranking/roundid_{{$r->id}}/playerid_{{Auth::user()->id}}">{{$r->name}}</a>
<a href="/users/ranking/roundid_{{$r->id}}#playerid_{{Auth::user()->id}}">{{$r->name}}</a>
@endif
</div>
@endif