aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/projects/view.tmpl4
-rw-r--r--templates/repo/tag/list.tmpl85
-rw-r--r--templates/swagger/v1_json.tmpl119
3 files changed, 105 insertions, 103 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl
index 7e89db0005..6aa776da02 100644
--- a/templates/projects/view.tmpl
+++ b/templates/projects/view.tmpl
@@ -130,12 +130,12 @@
<input class="project-column-id" type="hidden" name="id">
<div class="required field">
<label class="project-column-title-label" for="project-column-title-input">title</label>
- <input id="project-column-title-input" name="title" value="{{.Title}}" required>
+ <input id="project-column-title-input" name="title" required>
</div>
<div class="field">
<label class="project-column-color-label" for="project-column-color-input">color</label>
<div class="js-color-picker-input column">
- <input maxlength="7" placeholder="#c320f6" id="project-column-color-input" name="color" value="{{.Color}}">
+ <input maxlength="7" placeholder="#c320f6" id="project-column-color-input" name="color">
{{template "repo/issue/label_precolors"}}
</div>
</div>
diff --git a/templates/repo/tag/list.tmpl b/templates/repo/tag/list.tmpl
index 9789943b49..8b33b96f86 100644
--- a/templates/repo/tag/list.tmpl
+++ b/templates/repo/tag/list.tmpl
@@ -5,9 +5,7 @@
{{template "base/alert" .}}
{{template "repo/release_tag_header" .}}
<h4 class="ui top attached header">
- <div class="five wide column tw-flex tw-items-center">
- {{.TagCount}} {{ctx.Locale.Tr "repo.release.tags"}}
- </div>
+ {{.TagCount}} {{ctx.Locale.Tr "repo.release.tags"}}
</h4>
{{$canReadReleases := $.Permission.CanRead ctx.Consts.RepoUnitTypeReleases}}
<div class="ui attached segment">
@@ -15,53 +13,49 @@
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.tag_kind") "Tooltip" (ctx.Locale.Tr "search.tag_tooltip")}}
</form>
</div>
- <div class="ui attached table segment">
+ <div class="ui attached segment tw-p-0">
{{if .Releases}}
- <table class="ui very basic striped fixed table single line" id="tags-table">
- <tbody class="tag-list">
- {{range $idx, $release := .Releases}}
- <tr>
- <td class="tag-list-row">
- <h3 class="tag-list-row-title tw-mb-2">
- {{if $canReadReleases}}
- <a class="tag-list-row-link tw-flex tw-items-center" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
- {{else}}
- <a class="tag-list-row-link tw-flex tw-items-center" href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
- {{end}}
- </h3>
- <div class="download tw-flex tw-items-center">
- {{if $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
- {{if .CreatedUnix}}
- <span class="tw-mr-2">{{svg "octicon-clock" 16 "tw-mr-1"}}{{DateUtils.TimeSince .CreatedUnix}}</span>
- {{end}}
+ <div class="ui divided list" id="tags-table">
+ {{range $idx, $release := .Releases}}
+ <div class="item tag-list-row tw-p-4">
+ <h3 class="tag-list-row-title tw-mb-2">
+ {{if $canReadReleases}}
+ <a class="tag-list-row-link" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
+ {{else}}
+ <a class="tag-list-row-link" href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
+ {{end}}
+ </h3>
+ <div class="flex-text-block muted-links tw-gap-4 tw-flex-wrap">
+ {{if $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
+ {{if .CreatedUnix}}
+ <span class="flex-text-inline">{{svg "octicon-clock"}}{{DateUtils.TimeSince .CreatedUnix}}</span>
+ {{end}}
- <a class="tw-mr-2 tw-font-mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha .Sha1}}</a>
+ <a class="flex-text-inline tw-font-mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit"}}{{ShortSha .Sha1}}</a>
- {{if not $.DisableDownloadSourceArchives}}
- <a class="archive-link tw-mr-2 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-1"}}ZIP</a>
- <a class="archive-link tw-mr-2 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-1"}}TAR.GZ</a>
- {{end}}
+ {{if not $.DisableDownloadSourceArchives}}
+ <a class="archive-link flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip"}}ZIP</a>
+ <a class="archive-link flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}}TAR.GZ</a>
+ {{end}}
- {{if (and $canReadReleases $.CanCreateRelease $release.IsTag)}}
- <a class="tw-mr-2 muted" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.new_release"}}</a>
- {{end}}
+ {{if (and $canReadReleases $.CanCreateRelease $release.IsTag)}}
+ <a class="flex-text-inline" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag"}}{{ctx.Locale.Tr "repo.release.new_release"}}</a>
+ {{end}}
- {{if (and ($.Permission.CanWrite ctx.Consts.RepoUnitTypeCode) $release.IsTag)}}
- <a class="ui delete-button tw-mr-2 muted" data-url="{{$.RepoLink}}/tags/delete" data-id="{{.ID}}">
- {{svg "octicon-trash" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.delete_tag"}}
- </a>
- {{end}}
+ {{if (and ($.Permission.CanWrite ctx.Consts.RepoUnitTypeCode) $release.IsTag)}}
+ <a class="flex-text-inline link-action" data-url="{{$.RepoLink}}/tags/delete?id={{.ID}}" data-modal-confirm="#confirm-delete-tag-modal">
+ {{svg "octicon-trash"}}{{ctx.Locale.Tr "repo.release.delete_tag"}}
+ </a>
+ {{end}}
- {{if and $canReadReleases (not $release.IsTag)}}
- <a class="tw-mr-2 muted" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.detail"}}</a>
- {{end}}
- {{end}}
- </div>
- </td>
- </tr>
- {{end}}
- </tbody>
- </table>
+ {{if and $canReadReleases (not $release.IsTag)}}
+ <a class="flex-text-inline" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag"}}{{ctx.Locale.Tr "repo.release.detail"}}</a>
+ {{end}}
+ {{end}}
+ </div>
+ </div>
+ {{end}}
+ </div>
{{else}}
{{if .NumTags}}
<p class="tw-p-4">{{ctx.Locale.Tr "no_results_found"}}</p>
@@ -73,9 +67,8 @@
</div>
{{if $.Permission.CanWrite ctx.Consts.RepoUnitTypeCode}}
-<div class="ui g-modal-confirm delete modal">
+<div id="confirm-delete-tag-modal" class="ui small modal">
<div class="header">
- {{svg "octicon-trash"}}
{{ctx.Locale.Tr "repo.release.delete_tag"}}
</div>
<div class="content">
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index ff66bebfda..ffac8edec2 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -766,7 +766,7 @@
},
{
"type": "string",
- "description": "user's login name to search for",
+ "description": "identifier of the user, provided by the external authenticator",
"name": "login_name",
"in": "query"
},
@@ -842,7 +842,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to delete",
+ "description": "username of the user to delete",
"name": "username",
"in": "path",
"required": true
@@ -884,7 +884,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to edit",
+ "description": "username of the user whose data is to be edited",
"name": "username",
"in": "path",
"required": true
@@ -926,7 +926,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose badges are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -956,7 +956,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user to whom a badge is to be added",
"name": "username",
"in": "path",
"required": true
@@ -990,7 +990,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose badge is to be deleted",
"name": "username",
"in": "path",
"required": true
@@ -1032,7 +1032,7 @@
"parameters": [
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user who is to receive a public key",
"name": "username",
"in": "path",
"required": true
@@ -1071,7 +1071,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose public key is to be deleted",
"name": "username",
"in": "path",
"required": true
@@ -1114,7 +1114,7 @@
"parameters": [
{
"type": "string",
- "description": "username of the user that will own the created organization",
+ "description": "username of the user who will own the created organization",
"name": "username",
"in": "path",
"required": true
@@ -1154,7 +1154,7 @@
"parameters": [
{
"type": "string",
- "description": "existing username of user",
+ "description": "current username of the user",
"name": "username",
"in": "path",
"required": true
@@ -1197,7 +1197,7 @@
"parameters": [
{
"type": "string",
- "description": "username of the user. This user will own the created repository",
+ "description": "username of the user who will own the created repository",
"name": "username",
"in": "path",
"required": true
@@ -2716,7 +2716,7 @@
},
{
"type": "string",
- "description": "user to check",
+ "description": "username of the user to check",
"name": "username",
"in": "path",
"required": true
@@ -2747,7 +2747,7 @@
},
{
"type": "string",
- "description": "user to block",
+ "description": "username of the user to block",
"name": "username",
"in": "path",
"required": true
@@ -2787,7 +2787,7 @@
},
{
"type": "string",
- "description": "user to unblock",
+ "description": "username of the user to unblock",
"name": "username",
"in": "path",
"required": true
@@ -3258,7 +3258,7 @@
},
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user to check for an organization membership",
"name": "username",
"in": "path",
"required": true
@@ -3295,7 +3295,7 @@
},
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user to remove from the organization",
"name": "username",
"in": "path",
"required": true
@@ -3369,7 +3369,7 @@
},
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user to check for a public organization membership",
"name": "username",
"in": "path",
"required": true
@@ -3403,7 +3403,7 @@
},
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user whose membership is to be publicized",
"name": "username",
"in": "path",
"required": true
@@ -3440,7 +3440,7 @@
},
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user whose membership is to be concealed",
"name": "username",
"in": "path",
"required": true
@@ -6930,7 +6930,7 @@
},
{
"type": "string",
- "description": "username of the collaborator",
+ "description": "username of the user to check for being a collaborator",
"name": "collaborator",
"in": "path",
"required": true
@@ -6974,7 +6974,7 @@
},
{
"type": "string",
- "description": "username of the collaborator to add",
+ "description": "username of the user to add or update as a collaborator",
"name": "collaborator",
"in": "path",
"required": true
@@ -7074,7 +7074,7 @@
},
{
"type": "string",
- "description": "username of the collaborator",
+ "description": "username of the collaborator whose permissions are to be obtained",
"name": "collaborator",
"in": "path",
"required": true
@@ -11951,7 +11951,7 @@
},
{
"type": "string",
- "description": "user to subscribe",
+ "description": "username of the user to subscribe the issue to",
"name": "user",
"in": "path",
"required": true
@@ -12009,7 +12009,7 @@
},
{
"type": "string",
- "description": "user witch unsubscribe",
+ "description": "username of the user to unsubscribe from an issue",
"name": "user",
"in": "path",
"required": true
@@ -16821,7 +16821,7 @@
},
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose tracked times are to be listed",
"name": "user",
"in": "path",
"required": true
@@ -17844,7 +17844,7 @@
},
{
"type": "string",
- "description": "username of the member to list",
+ "description": "username of the user whose data is to be listed",
"name": "username",
"in": "path",
"required": true
@@ -17879,7 +17879,7 @@
},
{
"type": "string",
- "description": "username of the user to add",
+ "description": "username of the user to add to a team",
"name": "username",
"in": "path",
"required": true
@@ -17917,7 +17917,7 @@
},
{
"type": "string",
- "description": "username of the user to remove",
+ "description": "username of the user to remove from a team",
"name": "username",
"in": "path",
"required": true
@@ -18896,7 +18896,7 @@
"parameters": [
{
"type": "string",
- "description": "user to check",
+ "description": "username of the user to check",
"name": "username",
"in": "path",
"required": true
@@ -18920,7 +18920,7 @@
"parameters": [
{
"type": "string",
- "description": "user to block",
+ "description": "username of the user to block",
"name": "username",
"in": "path",
"required": true
@@ -18953,7 +18953,7 @@
"parameters": [
{
"type": "string",
- "description": "user to unblock",
+ "description": "username of the user to unblock",
"name": "username",
"in": "path",
"required": true
@@ -19115,7 +19115,7 @@
"parameters": [
{
"type": "string",
- "description": "username of followed user",
+ "description": "username of the user to check for authenticated followers",
"name": "username",
"in": "path",
"required": true
@@ -19139,7 +19139,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to follow",
+ "description": "username of the user to follow",
"name": "username",
"in": "path",
"required": true
@@ -19166,7 +19166,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to unfollow",
+ "description": "username of the user to unfollow",
"name": "username",
"in": "path",
"required": true
@@ -20120,7 +20120,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to get",
+ "description": "username of the user whose data is to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20149,7 +20149,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose activity feeds are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20203,7 +20203,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose followers are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20244,7 +20244,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose followed users are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20282,14 +20282,14 @@
"parameters": [
{
"type": "string",
- "description": "username of following user",
+ "description": "username of the following user",
"name": "username",
"in": "path",
"required": true
},
{
"type": "string",
- "description": "username of followed user",
+ "description": "username of the followed user",
"name": "target",
"in": "path",
"required": true
@@ -20318,7 +20318,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose GPG key list is to be obtained",
"name": "username",
"in": "path",
"required": true
@@ -20359,7 +20359,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user to get",
+ "description": "username of the user whose heatmap is to be obtained",
"name": "username",
"in": "path",
"required": true
@@ -20388,7 +20388,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose public keys are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20435,7 +20435,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose organizations are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20476,7 +20476,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose permissions are to be obtained",
"name": "username",
"in": "path",
"required": true
@@ -20515,7 +20515,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose owned repos are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20556,7 +20556,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose starred repos are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20600,7 +20600,7 @@
"parameters": [
{
"type": "string",
- "description": "username of the user",
+ "description": "username of the user whose watched repos are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20641,7 +20641,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of to user whose access tokens are to be listed",
"name": "username",
"in": "path",
"required": true
@@ -20683,7 +20683,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose token is to be created",
"name": "username",
"in": "path",
"required": true
@@ -20722,7 +20722,7 @@
"parameters": [
{
"type": "string",
- "description": "username of user",
+ "description": "username of the user whose token is to be deleted",
"name": "username",
"in": "path",
"required": true
@@ -21523,7 +21523,7 @@
"x-go-name": "Time"
},
"user_name": {
- "description": "User who spent the time (optional)",
+ "description": "username of the user who spent the time working on the issue (optional)",
"type": "string",
"x-go-name": "User"
}
@@ -23058,6 +23058,7 @@
"x-go-name": "RepoAdminChangeTeamAccess"
},
"username": {
+ "description": "username of the organization",
"type": "string",
"x-go-name": "UserName"
},
@@ -23508,7 +23509,9 @@
"x-go-name": "FullName"
},
"login_name": {
+ "description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
+ "default": "empty",
"x-go-name": "LoginName"
},
"must_change_password": {
@@ -23533,6 +23536,7 @@
"x-go-name": "SourceID"
},
"username": {
+ "description": "username of the user",
"type": "string",
"x-go-name": "Username"
},
@@ -24518,7 +24522,9 @@
"x-go-name": "Location"
},
"login_name": {
+ "description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
+ "default": "empty",
"x-go-name": "LoginName"
},
"max_repo_creation": {
@@ -24577,6 +24583,7 @@
"x-go-name": "UserID"
},
"username": {
+ "description": "username of the user",
"type": "string",
"x-go-name": "UserName"
},
@@ -26301,7 +26308,7 @@
"x-go-name": "RepoAdminChangeTeamAccess"
},
"username": {
- "description": "deprecated",
+ "description": "username of the organization\ndeprecated",
"type": "string",
"x-go-name": "UserName"
},
@@ -26545,6 +26552,7 @@
"x-go-name": "Name"
},
"username": {
+ "description": "username of the user",
"type": "string",
"x-go-name": "UserName"
}
@@ -28008,6 +28016,7 @@
"x-go-name": "UserID"
},
"user_name": {
+ "description": "username of the user",
"type": "string",
"x-go-name": "UserName"
}
@@ -28249,12 +28258,12 @@
"x-go-name": "Location"
},
"login": {
- "description": "the user's username",
+ "description": "login of the user, same as `username`",
"type": "string",
"x-go-name": "UserName"
},
"login_name": {
- "description": "the user's authentication sign-in name.",
+ "description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"default": "empty",
"x-go-name": "LoginName"