Skip to content

Commit

Permalink
Differentiate better between user settings and admin settings (#26538)
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 authored Aug 16, 2023
1 parent 7e75e58 commit 9665622
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ disabled_public_activity = This user has disabled the public visibility of the a
email_visibility.limited = Your email address is visible to all authenticated users
email_visibility.private = Your email address is only visible to you and administrators
show_on_map = Show this place on a map
settings = User Settings
form.name_reserved = The username "%s" is reserved.
form.name_pattern_not_allowed = The pattern "%s" is not allowed in a username.
Expand Down Expand Up @@ -2667,6 +2668,7 @@ monitor = Monitoring
first_page = First
last_page = Last
total = Total: %d
settings = Admin Settings

dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check <a target="_blank" rel="noreferrer" href="https://blog.gitea.io">the blog</a> for more details.
dashboard.statistic = Summary
Expand Down
2 changes: 1 addition & 1 deletion templates/admin/navbar.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="flex-container-nav">
<div class="ui fluid vertical menu">
<div class="header item">{{.locale.Tr "settings"}}</div>
<div class="header item">{{.locale.Tr "admin.settings"}}</div>
<a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/admin">
{{.locale.Tr "admin.dashboard"}}
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/user/settings/navbar.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="flex-container-nav">
<div class="ui fluid vertical menu">
<div class="header item">{{.locale.Tr "settings"}}</div>
<div class="header item">{{.locale.Tr "user.settings"}}</div>
<a class="{{if .PageIsSettingsProfile}}active {{end}}item" href="{{AppSubUrl}}/user/settings">
{{.locale.Tr "settings.profile"}}
</a>
Expand Down

0 comments on commit 9665622

Please sign in to comment.