17 lines
533 B
Plaintext
17 lines
533 B
Plaintext
package articles
|
|
|
|
import (
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
)
|
|
|
|
templ List(model models.ListArticlesViewModel) {
|
|
@layout.WithTemplate(model.HeaderMetaTags) {
|
|
@filterBar()
|
|
for _, item := range model.Items {
|
|
@bulma.ArticleCardWithThumbnail(item.Article.Title, item.Article.Thumbnail, item.Article.Url, item.Article.PubDate.String(), item.Source.DisplayName)
|
|
}
|
|
}
|
|
}
|