Skip to content

Commit 8908276

Browse files
author
Gusted
committed
Backport changes
1 parent 6b23363 commit 8908276

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

templates/user/dashboard/navbar.tmpl

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -75,30 +75,32 @@
7575
{{end}}
7676

7777
{{if .ContextUser.IsOrganization}}
78-
<a class="{{if .PageIsNews}}active{{end}} item" style="margin-left: auto" href="{{.ContextUser.DashboardLink}}{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
79-
{{svg "octicon-rss"}}&nbsp;{{.i18n.Tr "activities"}}
80-
</a>
81-
{{if not .UnitIssuesGlobalDisabled}}
82-
<a class="{{if .PageIsIssues}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/issues{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
83-
{{svg "octicon-issue-opened"}}&nbsp;{{.i18n.Tr "issues"}}
84-
</a>
85-
{{end}}
78+
<div class="right stackable menu">
79+
<a class="{{if .PageIsNews}}active{{end}} item" style="margin-left: auto" href="{{.ContextUser.DashboardLink}}{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
80+
{{svg "octicon-rss"}}&nbsp;{{.i18n.Tr "activities"}}
81+
</a>
82+
{{if not .UnitIssuesGlobalDisabled}}
83+
<a class="{{if .PageIsIssues}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/issues{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
84+
{{svg "octicon-issue-opened"}}&nbsp;{{.i18n.Tr "issues"}}
85+
</a>
86+
{{end}}
8687
{{if not .UnitPullsGlobalDisabled}}
87-
<a class="{{if .PageIsPulls}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/pulls{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
88-
{{svg "octicon-git-pull-request"}}&nbsp;{{.i18n.Tr "pull_requests"}}
89-
</a>
90-
{{end}}
91-
{{if and .ShowMilestonesDashboardPage (not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled))}}
92-
<a class="{{if .PageIsMilestonesDashboard}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/milestones{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
93-
{{svg "octicon-milestone"}}&nbsp;{{.i18n.Tr "milestones"}}
94-
</a>
95-
{{end}}
96-
<div class="item">
97-
<a class="ui primary basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'>
98-
{{.i18n.Tr "home.view_home" (.ContextUser.ShortName 40)}}
88+
<a class="{{if .PageIsPulls}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/pulls{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
89+
{{svg "octicon-git-pull-request"}}&nbsp;{{.i18n.Tr "pull_requests"}}
90+
</a>
91+
{{end}}
92+
{{if and .ShowMilestonesDashboardPage (not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled))}}
93+
<a class="{{if .PageIsMilestonesDashboard}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/milestones{{if .Team}}/{{PathEscape .Team.Name}}{{end}}">
94+
{{svg "octicon-milestone"}}&nbsp;{{.i18n.Tr "milestones"}}
9995
</a>
96+
{{end}}
97+
<div class="item">
98+
<a class="ui primary basic button" href="{{.ContextUser.HomeLink}}" title='{{.i18n.Tr "home.view_home" .ContextUser.Name}}'>
99+
{{.i18n.Tr "home.view_home" (.ContextUser.ShortName 40)}}
100+
</a>
100101
</div>
101-
{{end}}
102+
</div>
103+
{{end}}
102104
</div>
103105
</div>
104106
<div class="ui divider"></div>

web_src/less/_base.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ table th[data-sortt-desc] {
21942194
.ui.stackable.menu:not(.no-vertical-tabs) {
21952195
overflow-y: hidden;
21962196
overflow-x: auto;
2197-
flex-direction: row !important;
2197+
flex-direction: row;
21982198
flex-wrap: nowrap !important;
21992199

22002200
.item {
@@ -2204,5 +2204,9 @@ table th[data-sortt-desc] {
22042204
> .dropdown.item {
22052205
position: initial;
22062206
}
2207+
2208+
.menu {
2209+
flex-direction: row;
2210+
}
22072211
}
22082212
}

0 commit comments

Comments
 (0)