|
|
@ -23,7 +23,7 @@ |
|
|
|
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> |
|
|
|
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{range .Orgs}} |
|
|
|
{{range .Orgs}} |
|
|
|
<a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item truncated-item-container" 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 truncated-item-container" title="{{.Name}}" href="{{.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
{{avatar .}} |
|
|
|
{{avatar .}} |
|
|
|
<span class="truncated-item-name">{{.ShortName 40}}</span> |
|
|
|
<span class="truncated-item-name">{{.ShortName 40}}</span> |
|
|
|
<span class="org-visibility"> |
|
|
|
<span class="org-visibility"> |
|
|
@ -58,12 +58,12 @@ |
|
|
|
{{.i18n.Tr "home.filter_by_team_repositories"}} |
|
|
|
{{.i18n.Tr "home.filter_by_team_repositories"}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="scrolling menu items"> |
|
|
|
<div class="scrolling menu items"> |
|
|
|
<a class="{{if not $.Team}}active selected{{end}} item" title="{{.i18n.Tr "all"}}" href="{{AppSubUrl}}/org/{{$.Org.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
<a class="{{if not $.Team}}active selected{{end}} item" title="{{.i18n.Tr "all"}}" href="{{$.Org.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> |
|
|
|
{{.i18n.Tr "all"}} |
|
|
|
{{.i18n.Tr "all"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{range .Org.Teams}} |
|
|
|
{{range .Org.Teams}} |
|
|
|
{{if not .IncludesAllRepositories}} |
|
|
|
{{if not .IncludesAllRepositories}} |
|
|
|
<a class="{{if $.Team}}{{if eq $.Team.ID .ID}}active selected{{end}}{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{$.Org.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}/{{.Name}}"> |
|
|
|
<a class="{{if $.Team}}{{if eq $.Team.ID .ID}}active selected{{end}}{{end}} item" title="{{.Name}}" href="{{$.Org.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}/{{.Name}}"> |
|
|
|
{{.Name}} |
|
|
|
{{.Name}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
@ -76,21 +76,21 @@ |
|
|
|
|
|
|
|
|
|
|
|
{{if .ContextUser.IsOrganization}} |
|
|
|
{{if .ContextUser.IsOrganization}} |
|
|
|
<div class="right stackable menu"> |
|
|
|
<div class="right stackable menu"> |
|
|
|
<a class="{{if .PageIsNews}}active{{end}} item" style="margin-left: auto" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/dashboard{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
<a class="{{if .PageIsNews}}active{{end}} item" style="margin-left: auto" href="{{.ContextUser.DashboardLink}}{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
{{svg "octicon-rss"}} {{.i18n.Tr "activities"}} |
|
|
|
{{svg "octicon-rss"}} {{.i18n.Tr "activities"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{if not .UnitIssuesGlobalDisabled}} |
|
|
|
{{if not .UnitIssuesGlobalDisabled}} |
|
|
|
<a class="{{if .PageIsIssues}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/issues{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
<a class="{{if .PageIsIssues}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/issues{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
{{svg "octicon-issue-opened"}} {{.i18n.Tr "issues"}} |
|
|
|
{{svg "octicon-issue-opened"}} {{.i18n.Tr "issues"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{if not .UnitPullsGlobalDisabled}} |
|
|
|
{{if not .UnitPullsGlobalDisabled}} |
|
|
|
<a class="{{if .PageIsPulls}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/pulls{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
<a class="{{if .PageIsPulls}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/pulls{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
{{svg "octicon-git-pull-request"}} {{.i18n.Tr "pull_requests"}} |
|
|
|
{{svg "octicon-git-pull-request"}} {{.i18n.Tr "pull_requests"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{if and .ShowMilestonesDashboardPage (not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled))}} |
|
|
|
{{if and .ShowMilestonesDashboardPage (not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled))}} |
|
|
|
<a class="{{if .PageIsMilestonesDashboard}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/milestones{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
<a class="{{if .PageIsMilestonesDashboard}}active{{end}} item" href="{{.ContextUser.OrganisationLink}}/milestones{{if .Team}}/{{.Team.Name}}{{end}}"> |
|
|
|
{{svg "octicon-milestone"}} {{.i18n.Tr "milestones"}} |
|
|
|
{{svg "octicon-milestone"}} {{.i18n.Tr "milestones"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|