Skip to content

Commit 27f57a3

Browse files
committed
rename isShowFullName to IsShowFullName
1 parent 61fcdd6 commit 27f57a3

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

routers/web/repo/compare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ func CompareDiff(ctx *context.Context) {
826826
ctx.Data["AllowMaintainerEdit"] = false
827827
}
828828

829-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
829+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
830830

831831
ctx.HTML(http.StatusOK, tplCompare)
832832
}

routers/web/repo/issue.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func Issues(ctx *context.Context) {
455455
}
456456

457457
ctx.Data["CanWriteIssuesOrPulls"] = ctx.Repo.CanWriteIssuesOrPulls(isPullList)
458-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
458+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
459459

460460
ctx.HTML(http.StatusOK, tplIssues)
461461
}
@@ -907,7 +907,7 @@ func NewIssue(ctx *context.Context) {
907907
}
908908

909909
ctx.Data["HasIssuesOrPullsWritePermission"] = ctx.Repo.CanWrite(unit.TypeIssues)
910-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
910+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
911911

912912
ctx.HTML(http.StatusOK, tplIssueNew)
913913
}
@@ -1836,7 +1836,7 @@ func ViewIssue(ctx *context.Context) {
18361836
ctx.Data["IsRepoAdmin"] = ctx.IsSigned && (ctx.Repo.IsAdmin() || ctx.Doer.IsAdmin)
18371837
ctx.Data["LockReasons"] = setting.Repository.Issue.LockReasons
18381838
ctx.Data["RefEndName"] = git.RefEndName(issue.Ref)
1839-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
1839+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
18401840

18411841
var hiddenCommentTypes *big.Int
18421842
if ctx.IsSigned {

routers/web/repo/milestone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func MilestoneIssuesAndPulls(ctx *context.Context) {
294294
ctx.Data["CanWriteIssues"] = ctx.Repo.CanWriteIssuesOrPulls(false)
295295
ctx.Data["CanWritePulls"] = ctx.Repo.CanWriteIssuesOrPulls(true)
296296

297-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
297+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
298298

299299
ctx.HTML(http.StatusOK, tplMilestoneIssues)
300300
}

routers/web/repo/tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Tags(ctx *context.Context) {
2424
if setTagsContext(ctx) != nil {
2525
return
2626
}
27-
ctx.Data["isShowFullName"] = setting.UI.DefaultShowFullName
27+
ctx.Data["IsShowFullName"] = setting.UI.DefaultShowFullName
2828

2929
ctx.HTML(http.StatusOK, tplTags)
3030
}

templates/repo/issue/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
135135
{{range .Posters}}
136136
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
137-
{{avatar $.Context .}} {{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
137+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
138138
</a>
139139
{{end}}
140140
</div>
@@ -154,7 +154,7 @@
154154
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_assginee_no_select"}}</a>
155155
{{range .Assignees}}
156156
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{.ID}}&poster={{$.PosterID}}">
157-
{{avatar $.Context .}} {{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
157+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
158158
</a>
159159
{{end}}
160160
</div>

templates/repo/issue/milestone_issues.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
7878
{{range .Posters}}
7979
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
80-
{{avatar $.Context .}} {{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
80+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
8181
</a>
8282
{{end}}
8383
</div>
@@ -99,7 +99,7 @@
9999
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{.ID}}&poster={{$.PosterID}}">
100100
{{avatar $.Context . 28 "gt-mr-2"}}
101101
{{.Name}}
102-
{{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
102+
{{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
103103
</a>
104104
{{end}}
105105
</div>

templates/repo/issue/new_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<a class="item muted" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}">
187187
<span class="octicon-check invisible">{{svg "octicon-check"}}</span>
188188
<span class="text">
189-
{{avatar $.Context . 28 "gt-mr-3"}}{{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
189+
{{avatar $.Context . 28 "gt-mr-3"}}{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
190190
</span>
191191
</a>
192192
{{end}}

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{avatar $.Context .User 28 "gt-mr-3"}}
3030
{{.User.Name}}
3131
</span>
32-
{{if $.isShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.User.FullName}}</span>{{end}}
32+
{{if $.IsShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.User.FullName}}</span>{{end}}
3333
</a>
3434
{{end}}
3535
{{end}}
@@ -262,7 +262,7 @@
262262
{{avatar $.Context . 28 "gt-mr-3"}}
263263
{{.Name}}
264264
</span>
265-
{{if $.isShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
265+
{{if $.IsShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
266266
</a>
267267
{{end}}
268268
</div>

templates/repo/settings/protected_branch.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{{range .Users}}
5151
<div class="item" data-value="{{.ID}}">
5252
{{avatar $.Context . 28 "mini"}}
53-
{{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
53+
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
5454
</div>
5555
{{end}}
5656
</div>
@@ -102,7 +102,7 @@
102102
{{range .Users}}
103103
<div class="item" data-value="{{.ID}}">
104104
{{avatar $.Context . 28 "mini"}}
105-
{{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
105+
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
106106
</div>
107107
{{end}}
108108
</div>
@@ -182,7 +182,7 @@
182182
{{range .Users}}
183183
<div class="item" data-value="{{.ID}}">
184184
{{avatar $.Context . 28 "mini"}}
185-
{{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
185+
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
186186
</div>
187187
{{end}}
188188
</div>

templates/repo/settings/tags.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{range .Users}}
3838
<div class="item" data-value="{{.ID}}">
3939
{{avatar $.Context . 28 "mini"}}
40-
{{.Name}} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
40+
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
4141
</div>
4242
{{end}}
4343
</div>

0 commit comments

Comments
 (0)