| 
11 | 11 | 		</a>  | 
12 | 12 | 
 
  | 
13 | 13 | 		<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->  | 
14 |  | -		<div class="ui secondary menu item navbar-mobile-right only-mobile">  | 
 | 14 | +		<div class="ui secondary menu navbar-mobile-right only-mobile">  | 
15 | 15 | 			{{if and .IsSigned EnableTimetracking .ActiveStopwatch}}  | 
16 |  | -			<a id="mobile-stopwatch-icon" class="active-stopwatch item tw-mx-0" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{.ActiveStopwatch.Seconds}}">  | 
 | 16 | +			<a id="mobile-stopwatch-icon" class="active-stopwatch item" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{.ActiveStopwatch.Seconds}}">  | 
17 | 17 | 				<div class="tw-relative">  | 
18 | 18 | 					{{svg "octicon-stopwatch"}}  | 
19 | 19 | 					<span class="header-stopwatch-dot"></span>  | 
20 | 20 | 				</div>  | 
21 | 21 | 			</a>  | 
22 | 22 | 			{{end}}  | 
23 | 23 | 			{{if .IsSigned}}  | 
24 |  | -			<a id="mobile-notifications-icon" class="item tw-w-auto tw-p-2" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">  | 
 | 24 | +			<a id="mobile-notifications-icon" class="item" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">  | 
25 | 25 | 				<div class="tw-relative">  | 
26 | 26 | 					{{svg "octicon-bell"}}  | 
27 | 27 | 					<span class="notification_count{{if not $notificationUnreadCount}} tw-hidden{{end}}">{{$notificationUnreadCount}}</span>  | 
28 | 28 | 				</div>  | 
29 | 29 | 			</a>  | 
30 | 30 | 			{{end}}  | 
31 |  | -			<button class="item tw-w-auto ui icon mini button tw-p-2 tw-m-0" id="navbar-expand-toggle" aria-label="{{ctx.Locale.Tr "home.nav_menu"}}">{{svg "octicon-three-bars"}}</button>  | 
 | 31 | +			<button class="item ui icon mini button tw-m-0" id="navbar-expand-toggle" aria-label="{{ctx.Locale.Tr "home.nav_menu"}}">{{svg "octicon-three-bars"}}</button>  | 
32 | 32 | 		</div>  | 
33 | 33 | 
 
  | 
34 | 34 | 		<!-- navbar links non-mobile -->  | 
 | 
64 | 64 | 	<div class="navbar-right">  | 
65 | 65 | 		{{if and .IsSigned .MustChangePassword}}  | 
66 | 66 | 			<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">  | 
67 |  | -				<span class="text tw-flex tw-items-center">  | 
 | 67 | +				<span class="text">  | 
68 | 68 | 					{{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}}  | 
69 |  | -					<span class="only-mobile tw-ml-2">{{.SignedUser.Name}}</span>  | 
 | 69 | +					<span class="only-mobile">{{.SignedUser.Name}}</span>  | 
70 | 70 | 					<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>  | 
71 | 71 | 				</span>  | 
72 | 72 | 				<div class="menu user-menu">  | 
 | 
83 | 83 | 			</div><!-- end dropdown avatar menu -->  | 
84 | 84 | 		{{else if .IsSigned}}  | 
85 | 85 | 			{{if and EnableTimetracking .ActiveStopwatch}}  | 
86 |  | -			<a class="item not-mobile active-stopwatch tw-mx-0" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{.ActiveStopwatch.Seconds}}">  | 
 | 86 | +			<a class="item not-mobile active-stopwatch" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{.ActiveStopwatch.Seconds}}">  | 
87 | 87 | 				<div class="tw-relative">  | 
88 | 88 | 					{{svg "octicon-stopwatch"}}  | 
89 | 89 | 					<span class="header-stopwatch-dot"></span>  | 
90 | 90 | 				</div>  | 
91 | 91 | 			</a>  | 
92 | 92 | 			{{end}}  | 
93 | 93 | 
 
  | 
94 |  | -			<a class="item not-mobile tw-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">  | 
 | 94 | +			<a class="item not-mobile" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">  | 
95 | 95 | 				<div class="tw-relative">  | 
96 | 96 | 					{{svg "octicon-bell"}}  | 
97 | 97 | 					<span class="notification_count{{if not $notificationUnreadCount}} tw-hidden{{end}}">{{$notificationUnreadCount}}</span>  | 
98 | 98 | 				</div>  | 
99 | 99 | 			</a>  | 
100 | 100 | 
 
  | 
101 |  | -			<div class="ui dropdown jump item tw-mx-0 tw-pr-2" data-tooltip-content="{{ctx.Locale.Tr "create_new"}}">  | 
 | 101 | +			<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "create_new"}}">  | 
102 | 102 | 				<span class="text">  | 
103 | 103 | 					{{svg "octicon-plus"}}  | 
104 | 104 | 					<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>  | 
 | 
121 | 121 | 				</div><!-- end content create new menu -->  | 
122 | 122 | 			</div><!-- end dropdown menu create new -->  | 
123 | 123 | 
 
  | 
124 |  | -			<div class="ui dropdown jump item tw-mx-0 tw-pr-2" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">  | 
125 |  | -				<span class="text tw-flex tw-items-center">  | 
 | 124 | +			<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">  | 
 | 125 | +				<span class="text">  | 
126 | 126 | 					{{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}}  | 
127 |  | -					<span class="only-mobile tw-ml-2">{{.SignedUser.Name}}</span>  | 
 | 127 | +					<span class="only-mobile">{{.SignedUser.Name}}</span>  | 
128 | 128 | 					<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>  | 
129 | 129 | 				</span>  | 
 | 130 | +				{{/* do not localize it, here it needs the fixed length (width) to make UI comfortable */}}  | 
 | 131 | +				{{if .IsAdmin}}<span class="navbar-profile-admin">admin</span>{{end}}  | 
130 | 132 | 				<div class="menu user-menu">  | 
131 | 133 | 					<div class="ui header">  | 
132 | 134 | 						{{ctx.Locale.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>  | 
 | 
157 | 159 | 					</a>  | 
158 | 160 | 					{{if .IsAdmin}}  | 
159 | 161 | 						<div class="divider"></div>  | 
160 |  | - | 
161 | 162 | 						<a class="{{if .PageIsAdmin}}active {{end}}item" href="{{AppSubUrl}}/-/admin">  | 
162 | 163 | 							{{svg "octicon-server"}}  | 
163 | 164 | 							{{ctx.Locale.Tr "admin_panel"}}  | 
 | 
0 commit comments