Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions routers/web/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
shownIssues += int(issueCountByRepo[repoID])
}
}
if len(repoIDs) == 1 {
repo := showReposMap[repoIDs[0]]
if repo != nil {
ctx.Data["Repo"] = repo.OwnerName + "/" + repo.Name
}
}

ctx.Data["IsShowClosed"] = isShowClosed

Expand Down
1 change: 1 addition & 0 deletions templates/user/dashboard/issues.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<a class="{{if eq .SortType "farduedate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=farduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.issues.filter_sort.farduedate"}}</a>
</div>
</div>
{{template "user/dashboard/issues_create" .}}
</div>
</div>
{{template "shared/issuelist" mergeinto . "listType" "dashboard"}}
Expand Down
3 changes: 3 additions & 0 deletions templates/user/dashboard/issues_create.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{if .Repo}}
<a class="ui green button" href="{{AppSubUrl}}/{{.Repo}}/issues/new">{{.locale.Tr "repo.issues.new"}}</a>
{{end}}