|
|
@ -87,37 +87,53 @@ |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{.i18n.Tr "repo.wiki"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.wiki"}}</label> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<input name="enable_wiki" type="checkbox" {{if .Repository.EnableWiki}}checked{{end}}> |
|
|
|
<input class="enable-system" name="enable_wiki" type="checkbox" data-target="#wiki_box" {{if .Repository.EnableWiki}}checked{{end}}> |
|
|
|
<label>{{.i18n.Tr "repo.settings.wiki_desc"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.settings.wiki_desc"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inline field"> |
|
|
|
<div class="field {{if not .Repository.EnableWiki}}disabled{{end}}" id="wiki_box"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="field"> |
|
|
|
<input name="enable_external_wiki" type="checkbox" {{if .Repository.EnableExternalWiki}}checked{{end}}> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_wiki"}}</label> |
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not .Repository.EnableExternalWiki}}checked{{end}}/> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.settings.use_internal_wiki"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
|
|
|
|
<div class="ui radio checkbox"> |
|
|
|
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.EnableExternalWiki}}checked{{end}}/> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_wiki"}}</label> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="field {{if not .Repository.EnableExternalWiki}}disabled{{end}}" id="external_wiki_box"> |
|
|
|
<label for="external_wiki_url">{{.i18n.Tr "repo.settings.external_wiki_url"}}</label> |
|
|
|
<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.ExternalWikiURL}}"> |
|
|
|
<input id="external_wiki_url" name="external_wiki_url" type="url" value="{{.Repository.ExternalWikiURL}}"> |
|
|
|
<p class="help">{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}</p> |
|
|
|
<p class="help">{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{.i18n.Tr "repo.issues"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.issues"}}</label> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<input name="enable_issues" type="checkbox" {{if .Repository.EnableIssues}}checked{{end}}> |
|
|
|
<input class="enable-system" name="enable_issues" type="checkbox" data-target="#issue_box" {{if .Repository.EnableIssues}}checked{{end}}> |
|
|
|
<label>{{.i18n.Tr "repo.settings.issues_desc"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.settings.issues_desc"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inline field"> |
|
|
|
<div class="field {{if not .Repository.EnableIssues}}disabled{{end}}" id="issue_box"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="field"> |
|
|
|
<input name="enable_external_tracker" type="checkbox" {{if .Repository.EnableExternalTracker}}checked{{end}}> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="false" data-target="#external_issue_box" {{if not .Repository.EnableExternalTracker}}checked{{end}}/> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.settings.use_internal_issue_tracker"}}</label> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
|
|
|
|
<div class="ui radio checkbox"> |
|
|
|
|
|
|
|
<input class="hidden enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="true" data-target="#external_issue_box" {{if .Repository.EnableExternalTracker}}checked{{end}}/> |
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_issue_tracker"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.settings.use_external_issue_tracker"}}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="field {{if not .Repository.EnableExternalTracker}}disabled{{end}}" id="external_issue_box"> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<label for="tracker_url_format">{{.i18n.Tr "repo.settings.tracker_url_format"}}</label> |
|
|
|
<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.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}"> |
|
|
|
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{.Repository.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}"> |
|
|
@ -138,6 +154,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{if .Repository.CanEnablePulls}} |
|
|
|
{{if .Repository.CanEnablePulls}} |
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="ui divider"></div> |
|
|
|