File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2864,6 +2864,7 @@ teams.invite.title = You have been invited to join team <strong>%s</strong> in o
28642864teams.invite.by = Invited by %s
28652865teams.invite.description = Please click the button below to join the team.
28662866
2867+ view_as_role = View as: %s
28672868view_as_public_hint = You are viewing the README a public user.
28682869view_as_member_hint = You are viewing the README a member of this organization.
28692870
Original file line number Diff line number Diff line change 2828 {{if and .ShowMemberAndTeamTab .ShowOrgProfileReadmeSelector}}
2929 <div class="tw-my-4">
3030 <div id="org-home-view-as-dropdown" class="ui dropdown jump">
31- <span class="text">
32- {{svg "octicon-eye"}}
33- View as: {{if not .IsViewingOrgAsMember}}{{ctx.Locale.Tr "settings.visibility.public"}}{{else}}{{ctx.Locale.Tr "org.members.member"}}{{end}}
34- </span>
31+ {{- $viewAsRole := Iif (.IsViewingOrgAsMember) (ctx.Locale.Tr "org.members.member") (ctx.Locale.Tr "settings.visibility.public") -}}
32+ <span class="text">{{svg "octicon-eye"}} {{ctx.Locale.Tr "org.view_as_role" $viewAsRole}}</span>
3533 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
3634 <div class="menu">
3735 {{/* TODO: does it really need to use CurrentURL with query parameters? Why not construct a new link with clear parameters */}}
You can’t perform that action at this time.
0 commit comments