diff options
Diffstat (limited to 'templates/repo/settings')
-rw-r--r-- | templates/repo/settings/deploy_keys.tmpl | 15 | ||||
-rw-r--r-- | templates/repo/settings/lfs.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/lfs_pointers.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/options.tmpl | 15 | ||||
-rw-r--r-- | templates/repo/settings/webhook/delete_modal.tmpl | 11 |
5 files changed, 14 insertions, 35 deletions
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index 22fddeb4df..ea4fba240e 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -8,9 +8,9 @@ {{.locale.Tr "repo.settings.deploy_keys"}} <div class="ui right"> {{if not .DisableSSH}} - <div class="ui primary tiny show-panel button" data-panel="#add-deploy-key-panel">{{.locale.Tr "repo.settings.add_deploy_key"}}</div> + <button class="ui primary tiny show-panel button" data-panel="#add-deploy-key-panel">{{.locale.Tr "repo.settings.add_deploy_key"}}</button> {{else}} - <div class="ui primary tiny button disabled">{{.locale.Tr "settings.ssh_disabled"}}</div> + <button class="ui primary tiny button disabled">{{.locale.Tr "settings.ssh_disabled"}}</button> {{end}} </div> </h4> @@ -85,15 +85,6 @@ <div class="content"> <p>{{.locale.Tr "repo.settings.deploy_key_deletion_desc"}}</p> </div> - <div class="actions"> - <div class="ui red basic inverted cancel button"> - <i class="remove icon"></i> - {{.locale.Tr "modal.no"}} - </div> - <div class="ui green basic inverted ok button"> - <i class="checkmark icon"></i> - {{.locale.Tr "modal.yes"}} - </div> - </div> + {{template "base/delete_modal_actions" .}} </div> {{template "base/footer" .}} diff --git a/templates/repo/settings/lfs.tmpl b/templates/repo/settings/lfs.tmpl index 566a701efb..9a38d32345 100644 --- a/templates/repo/settings/lfs.tmpl +++ b/templates/repo/settings/lfs.tmpl @@ -50,8 +50,8 @@ </p> <form class="ui form" action="{{$.Link}}/delete/{{.Oid}}" method="post"> {{$.CsrfTokenHtml}} - <div class="center actions"> - <div class="ui basic cancel inverted button">{{$.locale.Tr "settings.cancel"}}</div> + <div class="center actions">{{/* TODO: Convert to base/delete_modal_actions */}} + <button class="ui basic cancel inverted button">{{$.locale.Tr "settings.cancel"}}</button> <button class="ui basic inverted yellow button">{{$.locale.Tr "modal.yes"}}</button> </div> </form> diff --git a/templates/repo/settings/lfs_pointers.tmpl b/templates/repo/settings/lfs_pointers.tmpl index 8eebc6e870..67021ba6cd 100644 --- a/templates/repo/settings/lfs_pointers.tmpl +++ b/templates/repo/settings/lfs_pointers.tmpl @@ -49,9 +49,9 @@ {{ShortSha .Oid}} </a> {{else}} - <span class="ui detail icon button brown disabled truncate"> + <button class="ui detail icon button brown disabled truncate"> {{ShortSha .Oid}} - </span> + </button> {{end}} </span> </td> diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 030c77b881..be07aeb0ff 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -825,7 +825,7 @@ </div> <div class="text right actions"> - <div class="ui cancel button">{{.locale.Tr "settings.cancel"}}</div> + <button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui red button">{{.locale.Tr "repo.settings.convert_confirm"}}</button> </div> </form> @@ -856,7 +856,7 @@ </div> <div class="text right actions"> - <div class="ui cancel button">{{.locale.Tr "settings.cancel"}}</div> + <button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui red button">{{.locale.Tr "repo.settings.convert_fork_confirm"}}</button> </div> </form> @@ -892,7 +892,7 @@ </div> <div class="text right actions"> - <div class="ui cancel button">{{.locale.Tr "settings.cancel"}}</div> + <button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui red button">{{.locale.Tr "repo.settings.transfer_perform"}}</button> </div> </form> @@ -926,7 +926,7 @@ </div> <div class="text right actions"> - <div class="ui cancel button">{{.locale.Tr "settings.cancel"}}</div> + <button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui red button">{{.locale.Tr "repo.settings.confirm_delete"}}</button> </div> </form> @@ -958,7 +958,7 @@ </div> <div class="text right actions"> - <div class="ui cancel button">{{.locale.Tr "settings.cancel"}}</div> + <button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui red button">{{.locale.Tr "repo.settings.confirm_wiki_delete"}}</button> </div> </form> @@ -988,10 +988,7 @@ {{.CsrfTokenHtml}} <input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}"> <input type="hidden" name="repo_id" value="{{.Repository.ID}}"> - <div class="center actions"> - <div class="ui basic cancel inverted button">{{.locale.Tr "settings.cancel"}}</div> - <button class="ui basic inverted yellow button">{{.locale.Tr "modal.yes"}}</button> - </div> + {{template "base/delete_modal_actions" .}} </form> </div> {{end}} diff --git a/templates/repo/settings/webhook/delete_modal.tmpl b/templates/repo/settings/webhook/delete_modal.tmpl index fdc49ada4e..f455899663 100644 --- a/templates/repo/settings/webhook/delete_modal.tmpl +++ b/templates/repo/settings/webhook/delete_modal.tmpl @@ -6,14 +6,5 @@ <div class="content"> <p>{{.locale.Tr "repo.settings.webhook_deletion_desc"}}</p> </div> - <div class="actions"> - <div class="ui red basic inverted cancel button"> - <i class="remove icon"></i> - {{.locale.Tr "modal.no"}} - </div> - <div class="ui green basic inverted ok button"> - <i class="checkmark icon"></i> - {{.locale.Tr "modal.yes"}} - </div> - </div> + {{template "base/delete_modal_actions" .}} </div> |