mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Improve Response to be more idiomatic
This commit is contained in:
parent
25cbd65777
commit
02ff7b4bcf
25 changed files with 302 additions and 275 deletions
|
@ -23,17 +23,17 @@ func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, re
|
|||
|
||||
entries, err := builder.GetEntries()
|
||||
if err != nil {
|
||||
response.Html().ServerError(err)
|
||||
response.HTML().ServerError(err)
|
||||
return
|
||||
}
|
||||
|
||||
countUnread, err := builder.CountEntries()
|
||||
if err != nil {
|
||||
response.Html().ServerError(err)
|
||||
response.HTML().ServerError(err)
|
||||
return
|
||||
}
|
||||
|
||||
response.Html().Render("unread", tplParams{
|
||||
response.HTML().Render("unread", tplParams{
|
||||
"user": user,
|
||||
"countUnread": countUnread,
|
||||
"entries": entries,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue