|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="ui floating dropdown link jump"> |
|
|
|
<div class="ui floating dropdown link jump"> |
|
|
|
<span class="text"> |
|
|
|
<span class="text"> |
|
|
|
{{avatar .ContextUser}} |
|
|
|
{{avatar .ContextUser}} |
|
|
|
{{.ContextUser.ShortName 20}} |
|
|
|
{{.ContextUser.ShortName 40}} |
|
|
|
{{if .ContextUser.IsOrganization}} |
|
|
|
{{if .ContextUser.IsOrganization}} |
|
|
|
<span class="org-visibility"> |
|
|
|
<span class="org-visibility"> |
|
|
|
{{if .ContextUser.Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
{{if .ContextUser.Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
@ -20,12 +20,12 @@ |
|
|
|
<div class="scrolling menu items"> |
|
|
|
<div class="scrolling menu items"> |
|
|
|
<a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> |
|
|
|
<a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> |
|
|
|
{{avatar .SignedUser}} |
|
|
|
{{avatar .SignedUser}} |
|
|
|
{{.SignedUser.ShortName 20}} |
|
|
|
{{.SignedUser.ShortName 40}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{range .Orgs}} |
|
|
|
{{range .Orgs}} |
|
|
|
<a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
<a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
{{avatar .}} |
|
|
|
{{avatar .}} |
|
|
|
{{.ShortName 20}} |
|
|
|
{{.ShortName 40}} |
|
|
|
<span class="org-visibility"> |
|
|
|
<span class="org-visibility"> |
|
|
|
{{if .Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
{{if .Visibility.IsLimited}}<div class="ui orange tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} |
|
|
|
{{if .Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
|
|
{{if .Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{$.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} |
|
|
@ -94,7 +94,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="item"> |
|
|
|
<div class="item"> |
|
|
|
<a class="ui blue basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'> |
|
|
|
<a class="ui blue basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'> |
|
|
|
{{.i18n.Tr "home.view_home" (.ContextUser.ShortName 20)}} |
|
|
|
{{.i18n.Tr "home.view_home" (.ContextUser.ShortName 40)}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|