{{ define "title" }}{{ .Tab | capitalize }} settings · {{ .RepoInfo.FullName }} · Tangled{{ end }} {{ define "repoContent" }}
{{ template "repo/settings/fragments/sidebar" . }}
{{ template "baseSettings" . }} {{ template "branchSettings" . }} {{ template "defaultLabelSettings" . }} {{ template "customLabelSettings" . }} {{ template "renameRepo" . }} {{ template "deleteRepo" . }}
{{ end }} {{ define "baseSettings" }}

Description

Website URL

Topics

List of topics separated by spaces.

{{ end }} {{ define "branchSettings" }}

Default branch

The default branch is considered the “base” branch in your repository, against which all pull requests and code commits are automatically made, unless you specify a different branch.

{{ end }} {{ define "defaultLabelSettings" }}

Default labels

Manage your issues and pulls by creating labels to categorize them. Only repository owners may configure labels. You may choose to subscribe to default labels, or create entirely custom labels.

{{ $title := "Unsubscribe from all labels" }} {{ $icon := "x" }} {{ $text := "Unsubscribe all" }} {{ $action := "unsubscribe" }} {{ if $.ShouldSubscribeAll }} {{ $title = "Subscribe to all labels" }} {{ $icon = "check-check" }} {{ $text = "Subscribe all" }} {{ $action = "subscribe" }} {{ end }} {{ range .DefaultLabels }} {{ end }}
{{ range .DefaultLabels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ $action := "subscribe" }} {{ $icon := "plus" }} {{ if mapContains $.SubscribedLabels .AtUri.String }} {{ $action = "unsubscribe" }} {{ $icon = "minus" }} {{ end }}
{{ else }}
No labels added yet
{{ end }}
{{ end }} {{ define "customLabelSettings" }}

Custom labels

{{ template "repo/settings/fragments/addLabelDefModal" . }}
{{ range .Labels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ if $.RepoInfo.Roles.IsOwner }} {{ end }}
{{ else }}
No labels added yet
{{ end }}
{{ end }} {{ define "renameRepo" }} {{ if and .RepoInfo.Roles.IsOwner .RepoInfo.RepoDid }}

Rename repository

Existing git remotes that use the old name will break. Use the stable, DID-based URLs below to avoid breakage on future renames.

{{ $knot := .RepoInfo.Knot }} {{ if eq $knot "knot1.tangled.sh" }} {{ $knot = "tangled.org" }} {{ end }}
{{ end }} {{ end }} {{ define "deleteRepo" }} {{ if .RepoInfo.Roles.RepoDeleteAllowed }}

Delete repository

Deleting a repository is irreversible and permanent. Be certain before deleting a repository.

{{ end }} {{ end }}