diff options
author | Unknwon <u@gogs.io> | 2017-06-11 00:56:31 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-11 00:56:31 -0400 |
commit | ab2197bc75fc85089a4ff7f8d2ee46caf04507a4 (patch) | |
tree | 61fe66bf31a26f8c2113feeb51711cde713e6c65 /templates/repo | |
parent | a887e475e36bb0a225e05c15d560d6fdb946833e (diff) |
random: some code simplify
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/settings/options.tmpl | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 91ffd065..0e3256a9 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -6,11 +6,11 @@ {{template "repo/settings/navbar" .}} <div class="twelve wide column content"> {{template "base/alert" .}} - <h4 class="ui top attached header"> + <div class="ui top attached header"> {{.i18n.Tr "repo.settings.basic_settings"}} - </h4> + </div> <div class="ui attached segment"> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="{{.Link}}" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="update"> <div class="required field {{if .Err_RepoName}}error{{end}}"> @@ -43,11 +43,11 @@ </div> {{if .Repository.IsMirror}} - <h4 class="ui top attached header"> + <div class="ui top attached header"> {{.i18n.Tr "repo.settings.mirror_settings"}} - </h4> + </div> <div class="ui attached segment"> - <form class="ui form" method="post"> + <form class="ui form" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="mirror"> <div class="inline field {{if .Err_EnablePrune}}error{{end}}"> @@ -74,7 +74,7 @@ <div class="ui divider"></div> - <form class="ui form" method="post"> + <form class="ui form" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="mirror-sync"> <div class="inline field"> @@ -88,11 +88,11 @@ </div> {{end}} - <h4 class="ui top attached header"> + <div class="ui top attached header"> {{.i18n.Tr "repo.settings.advanced_settings"}} - </h4> + </div> <div class="ui attached segment"> - <form class="ui form" method="post"> + <form class="ui form" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="advanced"> @@ -199,7 +199,6 @@ </div> {{end}} - <div class="ui divider"></div> <div class="field"> <button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button> </div> @@ -207,9 +206,9 @@ </div> {{if .IsRepositoryOwner}} - <h4 class="ui top attached warning header"> + <div class="ui top attached warning header"> {{.i18n.Tr "repo.settings.danger_zone"}} - </h4> + </div> <div class="ui attached warning table danger segment"> {{if .Repository.IsMirror}} <div class="item"> @@ -276,7 +275,7 @@ <div class="ui warning message text left"> {{.i18n.Tr "repo.settings.convert_notices_1" | Safe}} </div> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="{{.Link}}" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="convert"> <div class="field"> @@ -308,7 +307,7 @@ {{.i18n.Tr "repo.settings.transfer_notices_1" | Safe}} <br> {{.i18n.Tr "repo.settings.transfer_notices_2" | Safe}} </div> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="{{.Link}}" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="transfer"> <div class="field"> @@ -346,7 +345,7 @@ {{.i18n.Tr "repo.settings.delete_notices_fork_1" | Safe}} {{end}} </div> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="{{.Link}}" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="delete"> <div class="field"> @@ -378,7 +377,7 @@ {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}<br> {{.i18n.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}} </div> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="{{.Link}}" method="POST"> {{.CSRFTokenHTML}} <input type="hidden" name="action" value="delete-wiki"> <div class="field"> |