|
|
@ -53,7 +53,7 @@ |
|
|
|
{{/* These variables exist to make the logic in the Settings window easier to comprehend and are not used later on. */}} |
|
|
|
{{/* These variables exist to make the logic in the Settings window easier to comprehend and are not used later on. */}} |
|
|
|
{{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}} |
|
|
|
{{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}} |
|
|
|
{{$showMirrorSettings := and (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeCode) (or $newMirrorsPartiallyEnabled .Repository.IsMirror .PullMirror .PushMirrors)}} |
|
|
|
{{$showMirrorSettings := and (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeCode) (or $newMirrorsPartiallyEnabled .Repository.IsMirror .PullMirror .PushMirrors)}} |
|
|
|
{{$newMirrorsEntirelyEnabled := and (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{$newMirrorsEntirelyEnabled := and (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{$onlyNewPushMirrorsEnabled := and (not .DisableNewPushMirrors) .DisableNewPullMirrors}} |
|
|
|
{{$onlyNewPushMirrorsEnabled := and (not .DisableNewPushMirrors) .DisableNewPullMirrors}} |
|
|
|
{{$onlyNewPullMirrorsEnabled := and .DisableNewPushMirrors (not .DisableNewPullMirrors)}} |
|
|
|
{{$onlyNewPullMirrorsEnabled := and .DisableNewPushMirrors (not .DisableNewPullMirrors)}} |
|
|
@ -143,7 +143,7 @@ |
|
|
|
<label for="interval">{{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> |
|
|
|
<label for="interval">{{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> |
|
|
|
<input id="interval" name="interval" value="{{.PullMirror.Interval}}"> |
|
|
|
<input id="interval" name="interval" value="{{.PullMirror.Interval}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{$address := MirrorRemoteAddress $.Context .Repository .PullMirror.GetRemoteName}} |
|
|
|
{{$address := MirrorRemoteAddress ctx .Repository .PullMirror.GetRemoteName}} |
|
|
|
<div class="field {{if .Err_MirrorAddress}}error{{end}}"> |
|
|
|
<div class="field {{if .Err_MirrorAddress}}error{{end}}"> |
|
|
|
<label for="mirror_address">{{ctx.Locale.Tr "repo.mirror_address"}}</label> |
|
|
|
<label for="mirror_address">{{ctx.Locale.Tr "repo.mirror_address"}}</label> |
|
|
|
<input id="mirror_address" name="mirror_address" value="{{$address.Address}}" required> |
|
|
|
<input id="mirror_address" name="mirror_address" value="{{$address.Address}}" required> |
|
|
@ -294,7 +294,7 @@ |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<input type="hidden" name="action" value="advanced"> |
|
|
|
<input type="hidden" name="action" value="advanced"> |
|
|
|
|
|
|
|
|
|
|
|
{{$isCodeEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeCode}} |
|
|
|
{{$isCodeEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeCode}} |
|
|
|
{{$isCodeGlobalDisabled := ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled}} |
|
|
|
{{$isCodeGlobalDisabled := ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "repo.code"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.code"}}</label> |
|
|
@ -348,14 +348,14 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="external_wiki_box" class="field tw-pl-4 {{if not $isExternalWikiEnabled}}disabled{{end}}"> |
|
|
|
<div id="external_wiki_box" class="field tw-pl-4 {{if not $isExternalWikiEnabled}}disabled{{end}}"> |
|
|
|
<label for="external_wiki_url">{{ctx.Locale.Tr "repo.settings.external_wiki_url"}}</label> |
|
|
|
<label for="external_wiki_url">{{ctx.Locale.Tr "repo.settings.external_wiki_url"}}</label> |
|
|
|
<input id="external_wiki_url" name="external_wiki_url" type="url" value="{{(.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalWiki).ExternalWikiConfig.ExternalWikiURL}}"> |
|
|
|
<input id="external_wiki_url" name="external_wiki_url" type="url" value="{{(.Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeExternalWiki).ExternalWikiConfig.ExternalWikiURL}}"> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.external_wiki_url_desc"}}</p> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.external_wiki_url_desc"}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
|
<div class="divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
{{$isIssuesEnabled := or (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeIssues) (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker)}} |
|
|
|
{{$isIssuesEnabled := or (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeIssues) (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker)}} |
|
|
|
{{$isIssuesGlobalDisabled := ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}} |
|
|
|
{{$isIssuesGlobalDisabled := ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}} |
|
|
|
{{$isExternalTrackerGlobalDisabled := ctx.Consts.RepoUnitTypeExternalTracker.UnitGlobalDisabled}} |
|
|
|
{{$isExternalTrackerGlobalDisabled := ctx.Consts.RepoUnitTypeExternalTracker.UnitGlobalDisabled}} |
|
|
|
{{$isIssuesAndExternalGlobalDisabled := and $isIssuesGlobalDisabled $isExternalTrackerGlobalDisabled}} |
|
|
|
{{$isIssuesAndExternalGlobalDisabled := and $isIssuesGlobalDisabled $isExternalTrackerGlobalDisabled}} |
|
|
@ -369,28 +369,28 @@ |
|
|
|
<div class="field {{if not $isIssuesEnabled}}disabled{{end}}" id="issue_box"> |
|
|
|
<div class="field {{if not $isIssuesEnabled}}disabled{{end}}" id="issue_box"> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox{{if $isIssuesGlobalDisabled}} disabled{{end}}"{{if $isIssuesGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<div class="ui radio checkbox{{if $isIssuesGlobalDisabled}} disabled{{end}}"{{if $isIssuesGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<input class="enable-system-radio" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker)}}checked{{end}}> |
|
|
|
<input class="enable-system-radio" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker)}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.use_internal_issue_tracker"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.use_internal_issue_tracker"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field tw-pl-4 {{if (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker)}}disabled{{end}}" id="internal_issue_box"> |
|
|
|
<div class="field tw-pl-4 {{if (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker)}}disabled{{end}}" id="internal_issue_box"> |
|
|
|
{{if .Repository.CanEnableTimetracker}} |
|
|
|
{{if .Repository.CanEnableTimetracker}} |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<input name="enable_timetracker" class="enable-system" data-target="#only_contributors" type="checkbox" {{if .Repository.IsTimetrackerEnabled $.Context}}checked{{end}}> |
|
|
|
<input name="enable_timetracker" class="enable-system" data-target="#only_contributors" type="checkbox" {{if .Repository.IsTimetrackerEnabled ctx}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.enable_timetracker"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.enable_timetracker"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field {{if not (.Repository.IsTimetrackerEnabled $.Context)}}disabled{{end}}" id="only_contributors"> |
|
|
|
<div class="field {{if not (.Repository.IsTimetrackerEnabled ctx)}}disabled{{end}}" id="only_contributors"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<input name="allow_only_contributors_to_track_time" type="checkbox" {{if .Repository.AllowOnlyContributorsToTrackTime $.Context}}checked{{end}}> |
|
|
|
<input name="allow_only_contributors_to_track_time" type="checkbox" {{if .Repository.AllowOnlyContributorsToTrackTime ctx}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.allow_only_contributors_to_track_time"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.allow_only_contributors_to_track_time"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<input name="enable_issue_dependencies" type="checkbox" {{if (.Repository.IsDependenciesEnabled $.Context)}}checked{{end}}> |
|
|
|
<input name="enable_issue_dependencies" type="checkbox" {{if (.Repository.IsDependenciesEnabled ctx)}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.issues.dependency.setting"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.issues.dependency.setting"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -401,26 +401,26 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox{{if $isExternalTrackerGlobalDisabled}} disabled{{end}}"{{if $isExternalTrackerGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<div class="ui radio checkbox{{if $isExternalTrackerGlobalDisabled}} disabled{{end}}"{{if $isExternalTrackerGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<input class="enable-system-radio" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker}}checked{{end}}> |
|
|
|
<input class="enable-system-radio" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.use_external_issue_tracker"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.use_external_issue_tracker"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field tw-pl-4 {{if not (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker)}}disabled{{end}}" id="external_issue_box"> |
|
|
|
<div class="field tw-pl-4 {{if not (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker)}}disabled{{end}}" id="external_issue_box"> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<label for="external_tracker_url">{{ctx.Locale.Tr "repo.settings.external_tracker_url"}}</label> |
|
|
|
<label for="external_tracker_url">{{ctx.Locale.Tr "repo.settings.external_tracker_url"}}</label> |
|
|
|
<input id="external_tracker_url" name="external_tracker_url" type="url" value="{{(.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerURL}}"> |
|
|
|
<input id="external_tracker_url" name="external_tracker_url" type="url" value="{{(.Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerURL}}"> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.external_tracker_url_desc"}}</p> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.external_tracker_url_desc"}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<label for="tracker_url_format">{{ctx.Locale.Tr "repo.settings.tracker_url_format"}}</label> |
|
|
|
<label for="tracker_url_format">{{ctx.Locale.Tr "repo.settings.tracker_url_format"}}</label> |
|
|
|
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{(.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerFormat}}" placeholder="https://github.com/{user}/{repo}/issues/{index}"> |
|
|
|
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{(.Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerFormat}}" placeholder="https://github.com/{user}/{repo}/issues/{index}"> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.tracker_url_format_desc"}}</p> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.tracker_url_format_desc"}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inline fields"> |
|
|
|
<div class="inline fields"> |
|
|
|
<label for="issue_style">{{ctx.Locale.Tr "repo.settings.tracker_issue_style"}}</label> |
|
|
|
<label for="issue_style">{{ctx.Locale.Tr "repo.settings.tracker_issue_style"}}</label> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
{{$externalTracker := (.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalTracker)}} |
|
|
|
{{$externalTracker := (.Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeExternalTracker)}} |
|
|
|
{{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}} |
|
|
|
{{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}} |
|
|
|
<input class="js-tracker-issue-style" name="tracker_issue_style" type="radio" value="numeric" {{if eq $externalTrackerStyle "numeric"}}checked{{end}}> |
|
|
|
<input class="js-tracker-issue-style" name="tracker_issue_style" type="radio" value="numeric" {{if eq $externalTrackerStyle "numeric"}}checked{{end}}> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.tracker_issue_style.numeric"}} <span class="ui light grey text">#1234</span></label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.settings.tracker_issue_style.numeric"}} <span class="ui light grey text">#1234</span></label> |
|
|
@ -441,7 +441,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field {{if ne $externalTrackerStyle "regexp"}}disabled{{end}}" id="tracker-issue-style-regex-box"> |
|
|
|
<div class="field {{if ne $externalTrackerStyle "regexp"}}disabled{{end}}" id="tracker-issue-style-regex-box"> |
|
|
|
<label for="external_tracker_regexp_pattern">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern"}}</label> |
|
|
|
<label for="external_tracker_regexp_pattern">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern"}}</label> |
|
|
|
<input id="external_tracker_regexp_pattern" name="external_tracker_regexp_pattern" value="{{(.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerRegexpPattern}}"> |
|
|
|
<input id="external_tracker_regexp_pattern" name="external_tracker_regexp_pattern" value="{{(.Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerRegexpPattern}}"> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern_desc"}}</p> |
|
|
|
<p class="help">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern_desc"}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -449,9 +449,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
|
<div class="divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
{{$isProjectsEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeProjects}} |
|
|
|
{{$isProjectsEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeProjects}} |
|
|
|
{{$isProjectsGlobalDisabled := ctx.Consts.RepoUnitTypeProjects.UnitGlobalDisabled}} |
|
|
|
{{$isProjectsGlobalDisabled := ctx.Consts.RepoUnitTypeProjects.UnitGlobalDisabled}} |
|
|
|
{{$projectsUnit := .Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeProjects}} |
|
|
|
{{$projectsUnit := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeProjects}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "repo.projects"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.projects"}}</label> |
|
|
|
<div class="ui checkbox{{if $isProjectsGlobalDisabled}} disabled{{end}}"{{if $isProjectsGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<div class="ui checkbox{{if $isProjectsGlobalDisabled}} disabled{{end}}"{{if $isProjectsGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
@ -491,7 +491,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
|
<div class="divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
{{$isReleasesEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeReleases}} |
|
|
|
{{$isReleasesEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeReleases}} |
|
|
|
{{$isReleasesGlobalDisabled := ctx.Consts.RepoUnitTypeReleases.UnitGlobalDisabled}} |
|
|
|
{{$isReleasesGlobalDisabled := ctx.Consts.RepoUnitTypeReleases.UnitGlobalDisabled}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "repo.releases"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.releases"}}</label> |
|
|
@ -501,7 +501,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{$isPackagesEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypePackages}} |
|
|
|
{{$isPackagesEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypePackages}} |
|
|
|
{{$isPackagesGlobalDisabled := ctx.Consts.RepoUnitTypePackages.UnitGlobalDisabled}} |
|
|
|
{{$isPackagesGlobalDisabled := ctx.Consts.RepoUnitTypePackages.UnitGlobalDisabled}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "repo.packages"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.packages"}}</label> |
|
|
@ -512,7 +512,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{if .EnableActions}} |
|
|
|
{{if .EnableActions}} |
|
|
|
{{$isActionsEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeActions}} |
|
|
|
{{$isActionsEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeActions}} |
|
|
|
{{$isActionsGlobalDisabled := ctx.Consts.RepoUnitTypeActions.UnitGlobalDisabled}} |
|
|
|
{{$isActionsGlobalDisabled := ctx.Consts.RepoUnitTypeActions.UnitGlobalDisabled}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "actions.actions"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "actions.actions"}}</label> |
|
|
@ -525,9 +525,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
{{if not .IsMirror}} |
|
|
|
{{if not .IsMirror}} |
|
|
|
<div class="divider"></div> |
|
|
|
<div class="divider"></div> |
|
|
|
{{$pullRequestEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypePullRequests}} |
|
|
|
{{$pullRequestEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypePullRequests}} |
|
|
|
{{$pullRequestGlobalDisabled := ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}} |
|
|
|
{{$pullRequestGlobalDisabled := ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}} |
|
|
|
{{$prUnit := .Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypePullRequests}} |
|
|
|
{{$prUnit := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypePullRequests}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{ctx.Locale.Tr "repo.pulls"}}</label> |
|
|
|
<label>{{ctx.Locale.Tr "repo.pulls"}}</label> |
|
|
|
<div class="ui checkbox{{if $pullRequestGlobalDisabled}} disabled{{end}}"{{if $pullRequestGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
|
<div class="ui checkbox{{if $pullRequestGlobalDisabled}} disabled{{end}}"{{if $pullRequestGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}> |
|
|
@ -1048,7 +1048,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
{{if .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeWiki}} |
|
|
|
{{if .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeWiki}} |
|
|
|
<div class="ui small modal" id="delete-wiki-modal"> |
|
|
|
<div class="ui small modal" id="delete-wiki-modal"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
|
{{ctx.Locale.Tr "repo.settings.wiki_delete"}} |
|
|
|
{{ctx.Locale.Tr "repo.settings.wiki_delete"}} |
|
|
|