2015-08-29 21:21:59 +02:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="repository settings options">
|
|
|
|
{{template "repo/header" .}}
|
2017-03-15 23:39:38 +01:00
|
|
|
{{template "repo/settings/navbar" .}}
|
2015-08-29 21:21:59 +02:00
|
|
|
<div class="ui container">
|
2017-03-15 23:39:38 +01:00
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "repo.settings.basic_settings"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<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}}">
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
|
|
<input id="repo_name" name="repo_name" value="{{.Repository.Name}}" data-repo-name="{{.Repository.Name}}" autofocus required>
|
|
|
|
</div>
|
|
|
|
{{if not .Repository.IsFork}}
|
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.visibility"}}</label>
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}>
|
2018-07-04 13:43:21 +02:00
|
|
|
<label>{{.i18n.Tr "repo.visibility_helper" | Safe}} {{if .Repository.NumForks}}<span class="text red">{{.i18n.Tr "repo.visibility_fork_helper"}}</span>{{end}}</label>
|
2017-02-21 16:02:10 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="field {{if .Err_Description}}error{{end}}">
|
|
|
|
<label for="description">{{$.i18n.Tr "repo.repo_desc"}}</label>
|
|
|
|
<textarea id="description" name="description" rows="2">{{.Repository.Description}}</textarea>
|
|
|
|
</div>
|
|
|
|
<div class="field {{if .Err_Website}}error{{end}}">
|
|
|
|
<label for="website">{{.i18n.Tr "repo.settings.site"}}</label>
|
|
|
|
<input id="website" name="website" type="url" value="{{.Repository.Website}}">
|
|
|
|
</div>
|
2016-08-31 01:18:33 +02:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button>
|
2016-08-31 01:18:33 +02:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2016-08-31 01:18:33 +02:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
{{if .Repository.IsMirror}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "repo.settings.mirror_settings"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="mirror">
|
|
|
|
<div class="inline field {{if .Err_EnablePrune}}error{{end}}">
|
|
|
|
<label>{{.i18n.Tr "repo.mirror_prune"}}</label>
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input id="enable_prune" name="enable_prune" type="checkbox" {{if .MirrorEnablePrune}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.mirror_prune_desc"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="inline field {{if .Err_Interval}}error{{end}}">
|
|
|
|
<label for="interval">{{.i18n.Tr "repo.mirror_interval"}}</label>
|
2017-04-08 17:27:26 +02:00
|
|
|
<input id="interval" name="interval" value="{{.MirrorInterval}}">
|
2017-03-15 23:39:38 +01:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label for="mirror_address">{{.i18n.Tr "repo.mirror_address"}}</label>
|
|
|
|
<input id="mirror_address" name="mirror_address" value="{{.Mirror.FullAddress}}" required>
|
|
|
|
<p class="help">{{.i18n.Tr "repo.mirror_address_desc"}}</p>
|
|
|
|
</div>
|
2016-08-31 01:18:33 +02:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="ui divider"></div>
|
2016-08-31 01:18:33 +02:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<form class="ui form" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="mirror-sync">
|
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.mirror_last_synced"}}</label>
|
2017-12-11 05:37:04 +01:00
|
|
|
<span>{{.Mirror.UpdatedUnix.AsTime}}</span>
|
2016-08-31 01:18:33 +02:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<button class="ui blue button">{{$.i18n.Tr "repo.settings.sync_mirror"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "repo.settings.advanced_settings"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="advanced">
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-08-02 10:46:54 +02:00
|
|
|
{{$isWikiEnabled := or (.Repository.UnitEnabled $.UnitTypeWiki) (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.wiki"}}</label>
|
|
|
|
<div class="ui checkbox">
|
2017-04-03 04:19:51 +02:00
|
|
|
<input class="enable-system" name="enable_wiki" type="checkbox" data-target="#wiki_box" {{if $isWikiEnabled}}checked{{end}}>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.wiki_desc"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-03 04:19:51 +02:00
|
|
|
<div class="field {{if not $isWikiEnabled}}disabled{{end}}" id="wiki_box">
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-08-02 10:46:54 +02:00
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}checked{{end}}/>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.use_internal_wiki"}}</label>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-08-02 10:46:54 +02:00
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.UnitEnabled $.UnitTypeExternalWiki}}checked{{end}}/>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_wiki"}}</label>
|
2015-12-11 10:55:08 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
</div>
|
2017-08-02 10:46:54 +02:00
|
|
|
<div class="field {{if not (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}disabled{{end}}" id="external_wiki_box">
|
2017-03-15 23:39:38 +01:00
|
|
|
<label for="external_wiki_url">{{.i18n.Tr "repo.settings.external_wiki_url"}}</label>
|
|
|
|
<input id="external_wiki_url" name="external_wiki_url" type="url" value="{{(.Repository.MustGetUnit $.UnitTypeExternalWiki).ExternalWikiConfig.ExternalWikiURL}}">
|
|
|
|
<p class="help">{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="ui divider"></div>
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-08-02 10:46:54 +02:00
|
|
|
{{$isIssuesEnabled := or (.Repository.UnitEnabled $.UnitTypeIssues) (.Repository.UnitEnabled $.UnitTypeExternalTracker)}}
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.issues"}}</label>
|
|
|
|
<div class="ui checkbox">
|
2017-04-03 04:19:51 +02:00
|
|
|
<input class="enable-system" name="enable_issues" type="checkbox" data-target="#issue_box" {{if $isIssuesEnabled}}checked{{end}}>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.issues_desc"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-03 04:19:51 +02:00
|
|
|
<div class="field {{if not $isIssuesEnabled}}disabled{{end}}" id="issue_box">
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-09-12 08:48:13 +02:00
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.UnitTypeExternalTracker)}}checked{{end}}/>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.use_internal_issue_tracker"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-12 08:48:13 +02:00
|
|
|
<div class="field {{if (.Repository.UnitEnabled $.UnitTypeExternalTracker)}}disabled{{end}}" id="internal_issue_box">
|
2018-04-09 17:15:32 +02:00
|
|
|
{{if .Repository.CanEnableTimetracker}}
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="enable_timetracker" class="enable-system" data-target="#only_contributors" type="checkbox" {{if .Repository.IsTimetrackerEnabled}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.enable_timetracker"}}</label>
|
|
|
|
</div>
|
2017-09-12 08:48:13 +02:00
|
|
|
</div>
|
2018-04-09 17:15:32 +02:00
|
|
|
<div class="field {{if not .Repository.IsTimetrackerEnabled}}disabled{{end}}" id="only_contributors">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="allow_only_contributors_to_track_time" type="checkbox" {{if .Repository.AllowOnlyContributorsToTrackTime}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.allow_only_contributors_to_track_time"}}</label>
|
|
|
|
</div>
|
2017-09-12 08:48:13 +02:00
|
|
|
</div>
|
2018-04-09 17:15:32 +02:00
|
|
|
{{end}}
|
2017-09-12 08:48:13 +02:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-09-12 08:48:13 +02:00
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.UnitTypeExternalTracker}}checked{{end}}/>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_issue_tracker"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-02 10:46:54 +02:00
|
|
|
<div class="field {{if not (.Repository.UnitEnabled $.UnitTypeExternalTracker)}}disabled{{end}}" id="external_issue_box">
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<label for="external_tracker_url">{{.i18n.Tr "repo.settings.external_tracker_url"}}</label>
|
|
|
|
<input id="external_tracker_url" name="external_tracker_url" type="url" value="{{(.Repository.MustGetUnit $.UnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerURL}}">
|
|
|
|
<p class="help">{{.i18n.Tr "repo.settings.external_tracker_url_desc"}}</p>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="field">
|
|
|
|
<label for="tracker_url_format">{{.i18n.Tr "repo.settings.tracker_url_format"}}</label>
|
|
|
|
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{(.Repository.MustGetUnit $.UnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}">
|
|
|
|
<p class="help">{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="inline fields">
|
|
|
|
<label for="issue_style">{{.i18n.Tr "repo.settings.tracker_issue_style"}}</label>
|
2016-04-23 00:28:08 +02:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-03-15 23:39:38 +01:00
|
|
|
{{$externalTracker := (.Repository.MustGetUnit $.UnitTypeExternalTracker)}}
|
|
|
|
{{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}}
|
|
|
|
<input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="numeric" {{if $externalTrackerStyle}}{{if eq $externalTrackerStyle "numeric"}}checked=""{{end}}{{end}}/>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.tracker_issue_style.numeric"}} <span class="ui light grey text">(#1234)</span></label>
|
2016-04-23 00:28:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox">
|
2017-03-15 23:39:38 +01:00
|
|
|
<input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="alphanumeric" {{if $externalTrackerStyle}}{{if eq $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle "alphanumeric"}}checked=""{{end}}{{end}} />
|
|
|
|
<label>{{.i18n.Tr "repo.settings.tracker_issue_style.alphanumeric"}} <span class="ui light grey text">(ABC-123, DEFG-234)</span></label>
|
2016-04-23 00:28:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
</div>
|
2016-02-14 21:12:00 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
{{if .Repository.CanEnablePulls}}
|
2016-02-14 21:12:00 +01:00
|
|
|
<div class="ui divider"></div>
|
2018-01-05 19:56:50 +01:00
|
|
|
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
|
|
|
|
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.pulls"}}</label>
|
|
|
|
<div class="ui checkbox">
|
2018-01-05 19:56:50 +01:00
|
|
|
<input class="enable-system" name="enable_pulls" type="checkbox" data-target="#pull_box" {{if $pullRequestEnabled}}checked{{end}}>
|
2017-03-15 23:39:38 +01:00
|
|
|
<label>{{.i18n.Tr "repo.settings.pulls_desc"}}</label>
|
2015-08-29 21:21:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-05 19:56:50 +01:00
|
|
|
<div class="field{{if not $pullRequestEnabled}} disabled{{end}}" id="pull_box">
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="pulls_ignore_whitespace" type="checkbox" {{if and $pullRequestEnabled ($prUnit.PullRequestsConfig.IgnoreWhitespaceConflicts)}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.pulls.ignore_whitespace"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="pulls_allow_merge" type="checkbox" {{if or (not $pullRequestEnabled) ($prUnit.PullRequestsConfig.AllowMerge)}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.pulls.allow_merge_commits"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="pulls_allow_rebase" type="checkbox" {{if or (not $pullRequestEnabled) ($prUnit.PullRequestsConfig.AllowRebase)}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.pulls.allow_rebase_merge"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="pulls_allow_squash" type="checkbox" {{if or (not $pullRequestEnabled) ($prUnit.PullRequestsConfig.AllowSquash)}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.pulls.allow_squash_commits"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
{{end}}
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
<div class="field">
|
|
|
|
<button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-03 21:38:25 +01:00
|
|
|
|
2018-03-27 16:13:20 +02:00
|
|
|
{{if .IsAdmin}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "repo.settings.admin_settings"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="admin">
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input name="enable_health_check" type="checkbox" {{if .Repository.IsFsckEnabled}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.admin_enable_health_check"}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
<div class="field">
|
|
|
|
<button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
{{if .IsRepositoryOwner}}
|
|
|
|
<h4 class="ui top attached warning header">
|
|
|
|
{{.i18n.Tr "repo.settings.danger_zone"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached warning table danger segment">
|
|
|
|
{{if .Repository.IsMirror}}
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
|
|
|
<button class="ui basic red show-modal button" data-modal="#convert-repo-modal">{{.i18n.Tr "repo.settings.convert"}}</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>{{.i18n.Tr "repo.settings.convert"}}</h5>
|
|
|
|
<p>{{.i18n.Tr "repo.settings.convert_desc"}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-03 21:38:25 +01:00
|
|
|
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
{{end}}
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
|
|
|
<button class="ui basic red show-modal button" data-modal="#transfer-repo-modal">{{.i18n.Tr "repo.settings.transfer"}}</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>{{.i18n.Tr "repo.settings.transfer"}}</h5>
|
|
|
|
<p>{{.i18n.Tr "repo.settings.transfer_desc"}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-29 21:21:59 +02:00
|
|
|
|
2017-08-02 10:46:54 +02:00
|
|
|
{{if .Repository.UnitEnabled $.UnitTypeWiki}}
|
2017-03-15 23:39:38 +01:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-wiki-modal">{{.i18n.Tr "repo.settings.wiki_delete"}}</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>{{.i18n.Tr "repo.settings.wiki_delete"}}</h5>
|
|
|
|
<p>{{.i18n.Tr "repo.settings.wiki_delete_desc"}}</p>
|
2015-08-29 21:21:59 +02:00
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
<div class="ui right">
|
|
|
|
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{.i18n.Tr "repo.settings.delete"}}</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>{{.i18n.Tr "repo.settings.delete"}}</h5>
|
|
|
|
<p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-15 23:39:38 +01:00
|
|
|
{{end}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2015-08-29 21:21:59 +02:00
|
|
|
</div>
|
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
{{if .IsRepositoryOwner}}
|
|
|
|
{{if .Repository.IsMirror}}
|
|
|
|
<div class="ui small modal" id="convert-repo-modal">
|
|
|
|
<div class="header">
|
|
|
|
{{.i18n.Tr "repo.settings.convert"}}
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="content">
|
|
|
|
<div class="ui warning message text left">
|
2018-04-10 05:43:37 +02:00
|
|
|
{{.i18n.Tr "repo.settings.convert_notices_1"}}
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="convert">
|
|
|
|
<div class="field">
|
|
|
|
<label>
|
|
|
|
{{.i18n.Tr "repo.settings.transfer_form_title"}}
|
|
|
|
<span class="text red">{{.Repository.Name}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
|
|
<input id="repo_name" name="repo_name" required>
|
|
|
|
</div>
|
2016-02-14 21:12:00 +01:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="text right actions">
|
|
|
|
<div class="ui cancel button">{{.i18n.Tr "settings.cancel"}}</div>
|
|
|
|
<button class="ui red button">{{.i18n.Tr "repo.settings.convert_confirm"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
{{end}}
|
2016-02-14 21:12:00 +01:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="ui small modal" id="transfer-repo-modal">
|
|
|
|
<div class="header">
|
|
|
|
{{.i18n.Tr "repo.settings.transfer"}}
|
2015-09-01 12:31:47 +02:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="content">
|
|
|
|
<div class="ui warning message text left">
|
2018-04-10 05:43:37 +02:00
|
|
|
{{.i18n.Tr "repo.settings.transfer_notices_1"}} <br>
|
|
|
|
{{.i18n.Tr "repo.settings.transfer_notices_2"}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="transfer">
|
|
|
|
<div class="field">
|
|
|
|
<label>
|
|
|
|
{{.i18n.Tr "repo.settings.transfer_form_title"}}
|
|
|
|
<span class="text red">{{.Repository.Name}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
|
|
<input id="repo_name" name="repo_name" required>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
|
|
|
<label for="new_owner_name">{{.i18n.Tr "repo.settings.transfer_owner"}}</label>
|
|
|
|
<input id="new_owner_name" name="new_owner_name" required>
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="text right actions">
|
|
|
|
<div class="ui cancel button">{{.i18n.Tr "settings.cancel"}}</div>
|
|
|
|
<button class="ui red button">{{.i18n.Tr "repo.settings.make_transfer"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2015-08-29 21:21:59 +02:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="ui small modal" id="delete-repo-modal">
|
|
|
|
<div class="header">
|
|
|
|
{{.i18n.Tr "repo.settings.delete"}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="content">
|
|
|
|
<div class="ui warning message text left">
|
2016-07-23 14:42:46 +02:00
|
|
|
{{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
2017-11-15 02:37:16 +01:00
|
|
|
{{.i18n.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}}
|
2016-03-06 02:45:23 +01:00
|
|
|
{{if .Repository.NumForks}}<br>
|
2018-04-10 05:43:37 +02:00
|
|
|
{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}
|
2016-03-06 02:45:23 +01:00
|
|
|
{{end}}
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="delete">
|
|
|
|
<div class="field">
|
|
|
|
<label>
|
|
|
|
{{.i18n.Tr "repo.settings.transfer_form_title"}}
|
|
|
|
<span class="text red">{{.Repository.Name}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
|
|
<input id="repo_name" name="repo_name" required>
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="text right actions">
|
|
|
|
<div class="ui cancel button">{{.i18n.Tr "settings.cancel"}}</div>
|
|
|
|
<button class="ui red button">{{.i18n.Tr "repo.settings.confirm_delete"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-02-14 21:12:00 +01:00
|
|
|
</div>
|
2016-03-03 21:38:25 +01:00
|
|
|
|
2017-08-02 10:46:54 +02:00
|
|
|
{{if .Repository.UnitEnabled $.UnitTypeWiki}}
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="ui small modal" id="delete-wiki-modal">
|
|
|
|
<div class="header">
|
2018-03-02 21:31:15 +01:00
|
|
|
{{.i18n.Tr "repo.settings.wiki_delete"}}
|
2016-03-03 21:38:25 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="content">
|
|
|
|
<div class="ui warning message text left">
|
|
|
|
{{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
|
|
|
{{.i18n.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}}
|
2016-03-03 21:38:25 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="delete-wiki">
|
|
|
|
<div class="field">
|
|
|
|
<label>
|
|
|
|
{{.i18n.Tr "repo.settings.transfer_form_title"}}
|
|
|
|
<span class="text red">{{.Repository.Name}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label>
|
|
|
|
<input id="repo_name" name="repo_name" required>
|
|
|
|
</div>
|
2016-03-03 21:38:25 +01:00
|
|
|
|
2016-03-06 02:45:23 +01:00
|
|
|
<div class="text right actions">
|
|
|
|
<div class="ui cancel button">{{.i18n.Tr "settings.cancel"}}</div>
|
2018-03-06 08:25:21 +01:00
|
|
|
<button class="ui red button">{{.i18n.Tr "repo.settings.confirm_wiki_delete"}}</button>
|
2016-03-06 02:45:23 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-03 21:38:25 +01:00
|
|
|
</div>
|
2016-03-06 02:45:23 +01:00
|
|
|
{{end}}
|
2016-03-04 05:24:22 +01:00
|
|
|
{{end}}
|
2016-03-03 21:38:25 +01:00
|
|
|
|
2015-12-07 23:30:52 +01:00
|
|
|
{{template "base/footer" .}}
|