Revize deebc8b6
Přidáno uživatelem Marek Zábran před téměř 5 roky(ů)
resources/views/charts/index.blade.php | ||
---|---|---|
28 | 28 |
|
29 | 29 |
<div class="charts float-center"> |
30 | 30 |
@if (!$artefact->favourite) |
31 |
<form method="POST" |
|
32 |
action="{{ url('/artefact/like/' . $artefact->id) }}"> |
|
33 |
@csrf |
|
34 |
<button id="like_butt_{{$artefact->id}}" style="display: inline" |
|
35 |
type="submit" |
|
36 |
class="btn btn-primary button-image inter_like" ></button> |
|
37 |
</form> |
|
31 |
<a href="{{ action('ArtefactController@like', ['id' => $artefact->id]) }}"> |
|
32 |
<button id="like_butt_{{$artefact->id}}" type="button" |
|
33 |
class="btn btn-primary button-image inter_like"></button> |
|
34 |
</a> |
|
38 | 35 |
@else |
39 |
<form method="POST" |
|
40 |
action="{{ url('/artefact/unlike/' . $artefact->id) }}"> |
|
41 |
@csrf |
|
42 |
<button id="like_butt_{{$artefact->id}}" style="display: inline" |
|
43 |
type="submit" |
|
36 |
<a href="{{ action('ArtefactController@unlike', ['id' => $artefact->id]) }}"> |
|
37 |
<button id="like_butt_{{$artefact->id}}" type="button" |
|
44 | 38 |
class="btn btn-primary button-image inter_like_filled"></button> |
45 |
</form>
|
|
39 |
</a>
|
|
46 | 40 |
@endif |
47 |
<span class="likes_text"> |
|
48 |
<h6>{{$artefact->likes}}</h6> |
|
49 |
</span> |
|
41 |
<h6 class="artefact-likes">{{$artefact->likes}}</h6> |
|
50 | 42 |
</div> |
51 | 43 |
</div> |
52 | 44 |
</div> |
Také k dispozici: Unified diff
Oprava like/unlike u charts.