Skip to content

Commit 8cca437

Browse files
committed
Display warnings as bullet marks
1 parent 89945d5 commit 8cca437

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

options/locale/locale_en-US.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,8 +2448,13 @@ settings.matrix.room_id = Room ID
24482448
settings.matrix.message_type = Message Type
24492449
settings.visibility.private.button = Make Private
24502450
settings.visibility.private.text = Changing the visibility to private will not only make the repo visible to only allowed members but may remove the relation between it and forks, watchers, and stars.
2451+
settings.visibility.private.bullet_title = <strong>Changing the visibility to private will:</strong>
2452+
settings.visibility.private.bullet_one = Make the repo visible to only allowed members.
2453+
settings.visibility.private.bullet_two = May remove the relation between it and <strong>forks</strong>, <strong>watchers</strong>, and <strong>stars</strong>.
24512454
settings.visibility.public.button = Make Public
24522455
settings.visibility.public.text = Changing the visibility to public will make the repo visible to anyone.
2456+
settings.visibility.public.bullet_title= <strong>Changing the visibility to public will:</strong>
2457+
settings.visibility.public.bullet_one = Make the repo visible to anyone.
24532458
settings.visibility.success = Repository visibility changed.
24542459
settings.visibility.error = An error occurred while trying to change the repo visibility.
24552460
settings.visibility.fork_error = Can't change the visibility of a forked repo.

templates/repo/settings/options.tmpl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,14 +1025,18 @@
10251025
{{ctx.Locale.Tr "repo.visibility"}}
10261026
</div>
10271027
<div class="content">
1028-
<p>
10291028
{{if .Repository.IsPrivate}}
1030-
{{ctx.Locale.Tr "repo.settings.visibility.public.text"}}
1029+
<p>{{ctx.Locale.Tr "repo.settings.visibility.public.bullet_title"}}</p>
1030+
<ul>
1031+
<li>{{ctx.Locale.Tr "repo.settings.visibility.public.bullet_one"}}</li>
1032+
</ul>
10311033
{{else}}
1032-
{{ctx.Locale.Tr "repo.settings.visibility.private.text"}}
1033-
{{if .Repository.NumForks}}<span class="text red">{{ctx.Locale.Tr "repo.visibility_fork_helper"}}</span>{{end}}
1034+
<p>{{ctx.Locale.Tr "repo.settings.visibility.private.bullet_title"}}</p>
1035+
<ul>
1036+
<li>{{ctx.Locale.Tr "repo.settings.visibility.private.bullet_one"}}</li>
1037+
<li>{{ctx.Locale.Tr "repo.settings.visibility.private.bullet_two"}}{{if .Repository.NumForks}}<span class="text red">{{ctx.Locale.Tr "repo.visibility_fork_helper"}}</span>{{end}}</li>
1038+
</ul>
10341039
{{end}}
1035-
</p>
10361040
</div>
10371041
<form action="{{.Link}}" method="post">
10381042
{{.CsrfTokenHtml}}

0 commit comments

Comments
 (0)