Skip to content

Commit c4b2b95

Browse files
committed
fix lint
1 parent c2c9a1e commit c4b2b95

File tree

2 files changed

+60
-60
lines changed

2 files changed

+60
-60
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<form class="ignore-dirty tw-flex tw-flex-1 tw-mt-1" action="{{.RepoLink}}/search" method="get">
2-
<div class="ui small action input tw-flex-1">
3-
<input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}">
4-
{{template "shared/search/button"}}
5-
</div>
6-
</form>
2+
<div class="ui small action input tw-flex-1">
3+
<input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}">
4+
{{template "shared/search/button"}}
5+
</div>
6+
</form>
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
<div class="flex-item">
2-
<div class="flex-item-main">
3-
<div class="flex-item-title">
4-
{{ctx.Locale.Tr "repo.repo_desc"}}
5-
</div>
6-
{{if and (not .HideRepoInfo) (not .IsBlame)}}
7-
<div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-mt-2">
8-
{{- $description := .Repository.DescriptionHTML ctx -}}
9-
{{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}}
10-
{{if .Repository.Website}}{{svg "octicon-link"}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}
11-
</div>
12-
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics">
13-
{{/* it should match the code in issue-home.js */}}
14-
{{range .Topics}}<a class="repo-topic ui large label" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
15-
</div>
16-
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
17-
{{end}}
18-
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
19-
<div class="ui form tw-hidden flex-item-body tw-gap-2 tw-my-2" id="topic_edit">
20-
<div class="ui fluid multiple search selection dropdown tw-flex-wrap tw-flex-1">
21-
<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}">
22-
{{range .Topics}}
23-
{{/* keep the same layout as Fomantic UI generated labels */}}
24-
<a class="ui label transition visible tw-cursor-default tw-inline-block repo-topic" data-value="{{.Name}}">{{.Name}}{{svg "octicon-x" 16 "delete icon"}}</a>
25-
{{end}}
26-
<div class="text"></div>
27-
</div>
28-
<div>
29-
<button class="ui primary button" id="save_topic" data-link="{{.RepoLink}}/topics">{{ctx.Locale.Tr "save"}}</button>
30-
<button class="ui basic button" id="cancel_topic_edit">{{ctx.Locale.Tr "cancel"}}</button>
31-
</div>
32-
</div>
33-
{{end}}
34-
{{if .ReadmeExist}}
35-
<div class="flex-item-body tw-mt-2">
36-
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.TreeLink}}/{{.FileName}}">
37-
{{svg "octicon-book"}}{{ctx.Locale.Tr "readme"}}
38-
</a>
39-
</div>
40-
{{end}}
41-
{{if .DetectedRepoLicenses}}
42-
<div class="flex-item-body">
43-
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" data-tooltip-placement="top" data-tooltip-content="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
44-
{{svg "octicon-law"}}{{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
45-
</a>
46-
</div>
47-
{{end}}
48-
{{if .CitiationExist}}
49-
<div class="flex-item-body">
50-
<a class="tw-flex tw-items-center tw-gap-2 muted" id="cite-repo-button">
51-
{{svg "octicon-cross-reference"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}
52-
</a>
53-
</div>
54-
{{end}}
55-
</div>
56-
</div>
2+
<div class="flex-item-main">
3+
<div class="flex-item-title">
4+
{{ctx.Locale.Tr "repo.repo_desc"}}
5+
</div>
6+
{{if and (not .HideRepoInfo) (not .IsBlame)}}
7+
<div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-mt-2">
8+
{{- $description := .Repository.DescriptionHTML ctx -}}
9+
{{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}}
10+
{{if .Repository.Website}}{{svg "octicon-link"}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}
11+
</div>
12+
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics">
13+
{{/* it should match the code in issue-home.js */}}
14+
{{range .Topics}}<a class="repo-topic ui large label" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
15+
</div>
16+
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
17+
{{end}}
18+
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
19+
<div class="ui form tw-hidden flex-item-body tw-gap-2 tw-my-2" id="topic_edit">
20+
<div class="ui fluid multiple search selection dropdown tw-flex-wrap tw-flex-1">
21+
<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}">
22+
{{range .Topics}}
23+
{{/* keep the same layout as Fomantic UI generated labels */}}
24+
<a class="ui label transition visible tw-cursor-default tw-inline-block repo-topic" data-value="{{.Name}}">{{.Name}}{{svg "octicon-x" 16 "delete icon"}}</a>
25+
{{end}}
26+
<div class="text"></div>
27+
</div>
28+
<div>
29+
<button class="ui primary button" id="save_topic" data-link="{{.RepoLink}}/topics">{{ctx.Locale.Tr "save"}}</button>
30+
<button class="ui basic button" id="cancel_topic_edit">{{ctx.Locale.Tr "cancel"}}</button>
31+
</div>
32+
</div>
33+
{{end}}
34+
{{if .ReadmeExist}}
35+
<div class="flex-item-body tw-mt-2">
36+
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.TreeLink}}/{{.FileName}}">
37+
{{svg "octicon-book"}}{{ctx.Locale.Tr "readme"}}
38+
</a>
39+
</div>
40+
{{end}}
41+
{{if .DetectedRepoLicenses}}
42+
<div class="flex-item-body">
43+
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" data-tooltip-placement="top" data-tooltip-content="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
44+
{{svg "octicon-law"}}{{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
45+
</a>
46+
</div>
47+
{{end}}
48+
{{if .CitiationExist}}
49+
<div class="flex-item-body">
50+
<a class="tw-flex tw-items-center tw-gap-2 muted" id="cite-repo-button">
51+
{{svg "octicon-cross-reference"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}
52+
</a>
53+
</div>
54+
{{end}}
55+
</div>
56+
</div>

0 commit comments

Comments
 (0)