summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/config.tmpl18
-rw-r--r--templates/admin/dashboard.tmpl10
-rw-r--r--templates/admin/repo/list.tmpl2
-rw-r--r--templates/admin/repo/unadopted.tmpl75
-rw-r--r--templates/repo/settings/webhook/base_list.tmpl2
-rw-r--r--templates/user/settings/repos.tmpl12
6 files changed, 59 insertions, 60 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 136ad38f16..f0d0ad3643 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -238,16 +238,18 @@
<dd>{{.Mailer.SMTPPort}}</dd>
{{end}}
<dt>{{.locale.Tr "admin.config.mailer_user"}}</dt>
- <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br>
- <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
- {{.CsrfTokenHtml}}
- <div class="inline field ui left">
- <div class="ui input">
+ <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd>
+ <div class="ui divider"></div>
+ <dt class="gt-py-2">{{.locale.Tr "admin.config.send_test_mail"}}</dt>
+ <dd>
+ <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
+ {{.CsrfTokenHtml}}
+ <div class="ui tiny input">
<input type="email" name="email" placeholder="{{.locale.Tr "admin.config.test_email_placeholder"}}" size="29" required>
</div>
- </div>
- <button class="ui green button" id="test-mail-btn">{{.locale.Tr "admin.config.send_test_mail"}}</button>
- </form>
+ <button class="ui tiny green button">{{.locale.Tr "admin.config.send_test_mail_submit"}}</button>
+ </form>
+ </dd>
{{end}}
</dl>
</div>
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index 0aa95c0e73..6784451376 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -16,9 +16,9 @@
<h4 class="ui top attached header">
{{.locale.Tr "admin.dashboard.operations"}}
</h4>
- <form method="post" action="{{AppSubUrl}}/admin">
- {{.CsrfTokenHtml}}
- <div class="ui attached table segment">
+ <div class="ui attached table segment">
+ <form method="post" action="{{AppSubUrl}}/admin">
+ {{.CsrfTokenHtml}}
<table class="ui very basic table gt-px-4">
<tbody>
<tr>
@@ -71,8 +71,8 @@
</tr>
</tbody>
</table>
- </div>
- </form>
+ </form>
+ </div>
<h4 class="ui top attached header">
{{.locale.Tr "admin.dashboard.system_status"}}
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index 3d09f2de23..515ec78a34 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -1,4 +1,4 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
<div class="admin-setting-content">
<h4 class="ui top attached header">
{{.locale.Tr "admin.repos.repo_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl
index 3e47447178..27898a1854 100644
--- a/templates/admin/repo/unadopted.tmpl
+++ b/templates/admin/repo/unadopted.tmpl
@@ -1,4 +1,4 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
<div class="admin-setting-content">
<h4 class="ui top attached header">
{{.locale.Tr "admin.repos.unadopted"}}
@@ -18,47 +18,44 @@
{{if .search}}
<div class="ui attached segment settings">
{{if .Dirs}}
- <div class="ui middle aligned divided list">
+ <div class="ui aligned divided list">
{{range $dirI, $dir := .Dirs}}
- <div class="item">
- <div class="content">
- <span class="icon">{{svg "octicon-file-directory-fill"}}</span>
- <span class="name">{{$dir}}</span>
- <div class="right floated content">
- <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>
- <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}">
- <div class="header">
- <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
- </div>
- <div class="content">
- <p>{{$.locale.Tr "repo.adopt_preexisting_content" $dir}}</p>
- </div>
- <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted">
- {{$.CsrfTokenHtml}}
- <input type="hidden" name="id" value="{{$dir}}">
- <input type="hidden" name="action" value="adopt">
- <input type="hidden" name="q" value="{{$.Keyword}}">
- <input type="hidden" name="page" value="{{$.CurrentPage}}">
- {{template "base/modal_actions_confirm" (dict "locale" $.locale)}}
- </form>
+ <div class="item gt-df gt-ac">
+ <span class="gt-f1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span>
+ <div>
+ <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>
+ <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}">
+ <div class="header">
+ <span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
</div>
- <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>
- <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
- <div class="header">
- <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
- </div>
- <div class="content">
- <p>{{$.locale.Tr "repo.delete_preexisting_content" $dir}}</p>
- </div>
- <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted">
- {{$.CsrfTokenHtml}}
- <input type="hidden" name="id" value="{{$dir}}">
- <input type="hidden" name="action" value="delete">
- <input type="hidden" name="q" value="{{$.Keyword}}">
- <input type="hidden" name="page" value="{{$.CurrentPage}}">
- {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}}
- </form>
+ <div class="content">
+ <p>{{$.locale.Tr "repo.adopt_preexisting_content" $dir}}</p>
</div>
+ <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted">
+ {{$.CsrfTokenHtml}}
+ <input type="hidden" name="id" value="{{$dir}}">
+ <input type="hidden" name="action" value="adopt">
+ <input type="hidden" name="q" value="{{$.Keyword}}">
+ <input type="hidden" name="page" value="{{$.CurrentPage}}">
+ {{template "base/modal_actions_confirm" (dict "locale" $.locale)}}
+ </form>
+ </div>
+ <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>
+ <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
+ <div class="header">
+ <span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>
+ </div>
+ <div class="content">
+ <p>{{$.locale.Tr "repo.delete_preexisting_content" $dir}}</p>
+ </div>
+ <form class="ui form" method="POST" action="{{AppSubUrl}}/admin/repos/unadopted">
+ {{$.CsrfTokenHtml}}
+ <input type="hidden" name="id" value="{{$dir}}">
+ <input type="hidden" name="action" value="delete">
+ <input type="hidden" name="q" value="{{$.Keyword}}">
+ <input type="hidden" name="page" value="{{$.CurrentPage}}">
+ {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}}
+ </form>
</div>
</div>
</div>
diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl
index 61c5799513..663fde1528 100644
--- a/templates/repo/settings/webhook/base_list.tmpl
+++ b/templates/repo/settings/webhook/base_list.tmpl
@@ -1,7 +1,7 @@
<h4 class="ui top attached header">
{{.Title}}
<div class="ui right">
- <div class="ui floating1 jump dropdown">
+ <div class="ui jump dropdown">
<div class="ui primary tiny button">{{.locale.Tr "repo.settings.add_webhook"}}</div>
<div class="menu">
<a class="item" href="{{.BaseLinkNew}}/gitea/new">
diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl
index d60f1ffcf2..3ac381fd90 100644
--- a/templates/user/settings/repos.tmpl
+++ b/templates/user/settings/repos.tmpl
@@ -9,7 +9,7 @@
<div class="ui middle aligned divided list">
{{range $dirI, $dir := .Dirs}}
{{$repo := index $.ReposMap $dir}}
- <div class="item">
+ <div class="item {{if not $repo}}gt-py-2{{end}}">{{/* if not repo, then there are "adapt" buttons, so the padding shouldn't be that default large*/}}
<div class="content">
{{if $repo}}
{{if $repo.IsPrivate}}
@@ -30,11 +30,11 @@
<span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span>
{{end}}
{{else}}
- <span class="icon">{{svg "octicon-file-directory-fill"}}</span>
- <span class="name">{{$.ContextUser.Name}}/{{$dir}}</span>
- <div class="right floated content">
+ <span class="icon gt-dib gt-pt-3">{{svg "octicon-file-directory-fill"}}</span>
+ <span class="name gt-dib gt-pt-3">{{$.ContextUser.Name}}/{{$dir}}</span>
+ <div class="ui right">
{{if $.allowAdopt}}
- <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>
+ <button class="ui button green show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button>
<div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}">
<div class="header">
<span class="label">{{$.locale.Tr "repo.adopt_preexisting"}}</span>
@@ -51,7 +51,7 @@
</div>
{{end}}
{{if $.allowDelete}}
- <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>
+ <button class="ui button red show-modal gt-p-3" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
<div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}">
<div class="header">
<span class="label">{{$.locale.Tr "repo.delete_preexisting"}}</span>