1
1
@extends (' layout' )
2
- @section (' title' , ' Статус перевода Laravel ' . $current )
2
+ @section (' title' , ' Статус перевода Laravel ' . $current )
3
3
4
4
@section (' content' )
5
5
12
12
</x-slot >
13
13
14
14
<x-slot:actions >
15
- <a href =" {{ route (' documentation-contribution-guide' ) } }" class =" btn btn-primary btn-lg px-4" >Инструкция по
16
- переводу</a >
15
+ <a href =" {{ route (' documentation-contribution-guide' ) } }" class =" btn btn-primary btn-lg px-4" >
16
+ Инструкция по переводу
17
+ </a >
17
18
<a href =" https://github.com/{{ config (' services.github.repos.docs' ) } }"
18
19
class =" d-none d-md-inline-flex link-body-emphasis text-decoration-none icon-link icon-link-hover" >
19
20
Репозиторий
@@ -25,11 +26,11 @@ class="d-none d-md-inline-flex link-body-emphasis text-decoration-none icon-link
25
26
<x-container >
26
27
<div class =" col-xl-10 col-md-12 mx-auto" >
27
28
<div class =" p-4 p-xl-5 mb-4 bg-body-secondary rounded-3 position-relative" >
28
- <div class =" row row-cols-md-4 g-3 text-center" >
29
+ <div class =" row row-cols-2 row-cols- md-4 g-3 text-center" >
29
30
@foreach (\App \Docs:: SUPPORT_VERSIONS as $version )
30
31
<div class =" col" >
31
32
<a href =" {{ route (' status' , [' version' => $version ]) } }"
32
- class =" {{ $current === $version ? ' link-primary' : ' link-body-emphasis' } } text-decoration-none" >
33
+ class =" {{ $current === $version ? ' link-primary' : ' link-body-emphasis' } } text-decoration-none" >
33
34
Laravel {{ $version } }
34
35
</a >
35
36
</div >
@@ -42,58 +43,59 @@ class="{{ $current === $version ? 'link-primary' : 'link-body-emphasis' }} text-
42
43
<x-container >
43
44
<div class =" row" >
44
45
<div class =" col-xl-8 col-md-12 mx-auto text-xl-end text-center" >
45
- <p class =" mb-0" >Актуально: {{ $documents -> where (' behind' , 0 )-> count () } } из {{ $documents -> count () } } <sup class =" text-opacity-25" >({{ round ($documents -> where (' behind' , 0 )-> count () / $documents -> count () * 100 , 2 ) } } %)</sup ></p >
46
+ <p class =" mb-0" >
47
+ Актуально: {{ $documents -> where (' behind' , 0 )-> count () } } из {{ $documents -> count () } }
48
+ <sup class =" text-opacity-25" >
49
+ ({{ round ($documents -> where (' behind' , 0 )-> count () / $documents -> count () * 100 , 2 ) } } %)
50
+ </sup >
51
+ </p >
46
52
<p >Правок без обновления: ~{{ $documents -> sum (' behind' ) } } </p >
47
53
</div >
48
54
49
-
50
55
<div class =" col-xl-8 col-md-12 mx-auto" >
51
56
<div class =" bg-body-tertiary mb-4 p-4 p-xl-5 rounded" >
52
57
53
58
@foreach ($documents as $doc )
54
59
<div class =" position-relative" id =" {{ $doc -> file } }" >
55
60
<div class =" d-flex flex-column flex-lg-row align-items-start mb-4" >
56
61
<h5 class =" mb-lg-0 me-auto user-select-all d-flex align-items-center" >
57
- <a href =" {{ $doc -> getEditUrl () } }" target =" _blank" class =" link-body-emphasis small opacity-50 text-decoration-none me-2" >
62
+ <a href =" {{ $doc -> getEditUrl () } }" target =" _blank"
63
+ class =" link-body-emphasis small opacity-50 text-decoration-none me-2" >
58
64
<x-icon path =" i.edit" class =" bi" width =" 0.85rem" height =" 0.85rem" />
59
65
</a >
60
-
61
66
{{ $doc -> file } }
62
67
</h5 >
63
68
64
-
65
-
66
69
@if ($doc -> behind > 0 )
67
70
<a href =" {{ App \Docs:: compareLink ($doc -> version , $doc -> current_commit ) } }"
68
- target =" _blank" class =" me-3 d-block" >
69
- < span
70
- class = " badge bg-primary-subtle text-primary rounded rounded-1 fs-6 fw-normal " >
71
- Отстаёт на {{ $doc -> behind } } изменения </span >
71
+ target =" _blank" class =" me-3 d-block" >
72
+ < span class = " badge bg-primary-subtle text-primary rounded-1 fs-6 fw-normal " >
73
+ Отстаёт на {{ $doc -> behind } } изменения
74
+ </span >
72
75
</a >
73
76
@else
74
- <span
75
- class = " badge bg-success-subtle text-success rounded rounded-1 fs-6 fw-normal pe-none " > Перевод
76
- актуален </span >
77
+ <span class = " badge bg-success-subtle text-success rounded-1 fs-6 fw-normal pe-none " >
78
+ Перевод актуален
79
+ </span >
77
80
@endif
78
81
</div >
79
82
80
83
<div class =" d-flex align-items-baseline mb-2 clipboard" data-controller =" clipboard"
81
- data-clipboard-done-class =" done" >
84
+ data-clipboard-done-class =" done" >
82
85
<span class =" opacity-50 me-auto pe-none" >Перевод ссылается:</span >
83
86
<small class =" user-select-all me-2 col-4 col-md-auto text-truncate"
84
- data-clipboard-target =" source" >{{ $doc -> current_commit } } </small >
85
- <a href =" #"
86
- data-action =" clipboard#copy" >
87
+ data-clipboard-target =" source" >{{ $doc -> current_commit } } </small >
88
+ <a href =" #" data-action =" clipboard#copy" >
87
89
<x-icon path =" i.copy" class =" copy-action" data-controller =" tooltip" title =" Скопировать в буфер" />
88
90
<x-icon path =" i.copy-fill" class =" copy-done" data-controller =" tooltip" title =" Скопировано" />
89
91
</a >
90
92
</div >
91
93
92
94
<div class =" d-flex align-items-baseline mb-2 clipboard" data-controller =" clipboard"
93
- data-clipboard-done-class =" done" >
95
+ data-clipboard-done-class =" done" >
94
96
<span class =" opacity-50 me-auto pe-none" >Последний коммит:</span >
95
97
<small class =" user-select-all me-2 col-4 col-md-auto text-truncate"
96
- data-clipboard-target =" source" >{{ $doc -> last_commit } } </small >
98
+ data-clipboard-target =" source" >{{ $doc -> last_commit } } </small >
97
99
<a href =" #" data-action =" clipboard#copy" title =" Скопировать в буфер обмена" >
98
100
<x-icon path =" i.copy" class =" copy-action" />
99
101
<x-icon path =" i.copy-fill" class =" copy-done" />
0 commit comments