mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 01:07:15 +02:00
random: some code simplify
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user