Skip to content

Commit 2fccb6c

Browse files
committed
fine tune
1 parent 4d48f0b commit 2fccb6c

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

options/locale/locale_en-US.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,11 +2138,11 @@ settings = Settings
21382138
settings.desc = Settings is where you can manage the settings for the repository
21392139
settings.options = Repository
21402140
settings.public_access = Public Access
2141-
settings.public_access_desc = Configure public access permissions for each units.
2142-
settings.public_access.docs.not_set = Not set means there is no extra public access rules for this repo, it follows its own visibility and member permissions.
2143-
settings.public_access.docs.anonymous_read = Anonymous read means non-signed-in users can access the unit.
2144-
settings.public_access.docs.everyone_read = Everyone read means all signed-in users can access the unit. Read permission also means being able to create new issues or PRs.
2145-
settings.public_access.docs.everyone_write = Everyone write means all signed-in users have write permission to the unit, this is only for Wiki unit.
2141+
settings.public_access_desc = Configure public visitor's access permissions to override the defaults of this repository.
2142+
settings.public_access.docs.not_set = Not Set: no extra public access permission. The visitor's permission follows the repository's visibility and member permissions.
2143+
settings.public_access.docs.anonymous_read = Anonymous Read: users who are not logged in can access the unit with read permission.
2144+
settings.public_access.docs.everyone_read = Everyone Read: all logged-in users can access the unit with read permission. Read permission of issues/pull-requests units also means visitor can create new issues/pull-requests.
2145+
settings.public_access.docs.everyone_write = Everyone Write: all logged-in users have write permission to the unit. Only Wiki unit supports this permission.
21462146
settings.collaboration = Collaborators
21472147
settings.collaboration.admin = Administrator
21482148
settings.collaboration.write = Write

templates/repo/settings/public_access.tmpl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
</tr>
3838
{{end}}
3939
</table>
40-
<div class="tw-my-2">
41-
<p class="help">
42-
{{ctx.Locale.Tr "repo.settings.public_access.docs.not_set"}}<br>
43-
{{ctx.Locale.Tr "repo.settings.public_access.docs.anonymous_read"}}<br>
44-
{{ctx.Locale.Tr "repo.settings.public_access.docs.everyone_read"}}<br>
45-
{{ctx.Locale.Tr "repo.settings.public_access.docs.everyone_write"}}
46-
</p>
47-
</div>
40+
<ul class="tw-my-3 tw-pl-5 tw-flex tw-flex-col tw-gap-3">
41+
<li>{{ctx.Locale.Tr "repo.settings.public_access.docs.not_set"}}</li>
42+
<li>{{ctx.Locale.Tr "repo.settings.public_access.docs.anonymous_read"}}</li>
43+
<li>{{ctx.Locale.Tr "repo.settings.public_access.docs.everyone_read"}}</li>
44+
<li>{{ctx.Locale.Tr "repo.settings.public_access.docs.everyone_write"}}</li>
45+
</ul>
4846
<button class="ui primary button {{if .GlobalForcePrivate}}disabled{{end}}">{{ctx.Locale.Tr "repo.settings.update_settings"}}</button>
4947
</form>
5048
</div>

0 commit comments

Comments
 (0)