|
1 |
| -{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}} |
| 1 | +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}} |
2 | 2 | <div class="admin-setting-content">
|
3 | 3 | <h4 class="ui top attached header">
|
4 | 4 | {{.locale.Tr "admin.repos.unadopted"}}
|
|
20 | 20 | {{if .Dirs}}
|
21 | 21 | <div class="ui aligned divided list">
|
22 | 22 | {{range $dirI, $dir := .Dirs}}
|
23 |
| - <div class="item"> |
24 |
| - <div class="content"> |
25 |
| - <span class="icon">{{svg "octicon-file-directory-fill"}}</span> |
26 |
| - <span class="name">{{$dir}}</span> |
27 |
| - <div class="right floated content"> |
28 |
| - <button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button> |
29 |
| - <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> |
30 |
| - <div class="header"> |
31 |
| - <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span> |
32 |
| - </div> |
33 |
| - <div class="content"> |
34 |
| - <p>{{$.locale.Tr "repo.adopt_preexisting_content" $dir}}</p> |
35 |
| - </div> |
36 |
| - <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted"> |
37 |
| - {{$.CsrfTokenHtml}} |
38 |
| - <input type="hidden" name="id" value="{{$dir}}"> |
39 |
| - <input type="hidden" name="action" value="adopt"> |
40 |
| - <input type="hidden" name="q" value="{{$.Keyword}}"> |
41 |
| - <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
42 |
| - {{template "base/modal_actions_confirm" (dict "locale" $.locale)}} |
43 |
| - </form> |
| 23 | + <div class="item gt-df gt-ac"> |
| 24 | + <span class="gt-f1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span> |
| 25 | + <div> |
| 26 | + <button class="ui button green show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}">{{svg "octicon-plus"}} {{$.locale.Tr "repo.adopt_preexisting_label"}}</button> |
| 27 | + <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> |
| 28 | + <div class="header"> |
| 29 | + <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span> |
44 | 30 | </div>
|
45 |
| - <button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button> |
46 |
| - <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}"> |
47 |
| - <div class="header"> |
48 |
| - <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span> |
49 |
| - </div> |
50 |
| - <div class="content"> |
51 |
| - <p>{{$.locale.Tr "repo.delete_preexisting_content" $dir}}</p> |
52 |
| - </div> |
53 |
| - <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted"> |
54 |
| - {{$.CsrfTokenHtml}} |
55 |
| - <input type="hidden" name="id" value="{{$dir}}"> |
56 |
| - <input type="hidden" name="action" value="delete"> |
57 |
| - <input type="hidden" name="q" value="{{$.Keyword}}"> |
58 |
| - <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
59 |
| - {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}} |
60 |
| - </form> |
| 31 | + <div class="content"> |
| 32 | + <p>{{$.locale.Tr "repo.adopt_preexisting_content" $dir}}</p> |
61 | 33 | </div>
|
| 34 | + <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted"> |
| 35 | + {{$.CsrfTokenHtml}} |
| 36 | + <input type="hidden" name="id" value="{{$dir}}"> |
| 37 | + <input type="hidden" name="action" value="adopt"> |
| 38 | + <input type="hidden" name="q" value="{{$.Keyword}}"> |
| 39 | + <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
| 40 | + {{template "base/modal_actions_confirm" (dict "locale" $.locale)}} |
| 41 | + </form> |
| 42 | + </div> |
| 43 | + <button class="ui button red show-modal gt-p-3" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{$.locale.Tr "repo.delete_preexisting_label"}}</button> |
| 44 | + <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}"> |
| 45 | + <div class="header"> |
| 46 | + <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span> |
| 47 | + </div> |
| 48 | + <div class="content"> |
| 49 | + <p>{{$.locale.Tr "repo.delete_preexisting_content" $dir}}</p> |
| 50 | + </div> |
| 51 | + <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted"> |
| 52 | + {{$.CsrfTokenHtml}} |
| 53 | + <input type="hidden" name="id" value="{{$dir}}"> |
| 54 | + <input type="hidden" name="action" value="delete"> |
| 55 | + <input type="hidden" name="q" value="{{$.Keyword}}"> |
| 56 | + <input type="hidden" name="page" value="{{$.CurrentPage}}"> |
| 57 | + {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}} |
| 58 | + </form> |
62 | 59 | </div>
|
63 | 60 | </div>
|
64 | 61 | </div>
|
|
0 commit comments