Skip to content

Commit 241d735

Browse files
Gustedsilverwindgary-kim
committed
Apply suggestion from code-Review
Co-authored-by: silverwind <[email protected]> Co-authored-by: Gary Kim <[email protected]>
1 parent 0436cd7 commit 241d735

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

models/repo_permission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func getUserRepoPermission(ctx context.Context, repo *repo_model.Repository, use
250250
perm.UnitsMode = nil
251251
return
252252
}
253-
// Check if the team has acces to private issues.
253+
// Check if the team has access to private issues.
254254
if team.CanSeePrivateIssues {
255255
perm.SeePrivateIssue = true
256256
}

options/locale/locale_en-US.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,9 +1413,9 @@ issues.content_history.delete_from_history_confirm = Delete from history?
14131413
issues.content_history.options = Options
14141414
issues.confidential = Confidential
14151415
issues.confidential.off = Make issue public
1416-
issues.confidential.off_popup = By clicking this button, you will make this issue and comments public to everyone who can read this repo.
1416+
issues.confidential.off_popup = By clicking this button, this issue will be visible to everyone with read access to this repositry.
14171417
issues.confidential.on = Make issue confidential
1418-
issues.confidential.on_popup = By turning on the confidential mode, only the poster, repo admins and team members who have "Access private issues" permission will be able to access this issue.
1418+
issues.confidential.on_popup = By turning on the confidential mode, only the poster, repository administrators and team members who have "Access private issues" permission will be able to access this issue.
14191419
issues.confidential.title_bar = This issue is confidential
14201420
issues.confidential.warning = This issue is marked as confidential, your comment won't be visible to the public.
14211421

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,14 @@
304304

305305
{{if and (or (.IsRepoAdmin) (.IsIssuePoster)) (not .Issue.IsPull)}}
306306
<div class="ui divider"></div>
307-
<div class="ui">
307+
<div>
308308
<span class="text"><strong>{{.i18n.Tr "repo.issues.confidential"}}</strong></span>
309309
<div class="mt-3">
310310
<form method="POST" action="{{.Issue.Link}}/private">
311311
<input type="hidden" name="is_confidential" value="{{if .Issue.IsPrivate}}false{{else}}true{{end}}" />
312312
{{$.CsrfTokenHtml}}
313313
<label class="tooltip" data-content="{{if .Issue.IsPrivate}}{{.i18n.Tr "repo.issues.confidential.off_popup"}}{{else}}{{.i18n.Tr "repo.issues.confidential.on_popup"}}{{end}}">
314-
<button data-tooltip="hi" class="fluid ui button df jc">
314+
<button class="fluid ui button df jc">
315315
{{if .Issue.IsPrivate}}
316316
{{svg "octicon-eye-closed" 16 "mr-3 text orange"}}
317317
{{.i18n.Tr "repo.issues.confidential.off"}}

templates/shared/issuelist.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
{{svg "octicon-issue-opened" 16 "text green"}}
3434
{{end}}
3535
{{end}}
36-
3736
</div>
3837
</div>
3938
<div class="issue-item-main f1 fc df">

0 commit comments

Comments
 (0)