mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Show feeds with errors first
This commit is contained in:
parent
5a721e694b
commit
a475b875c5
6 changed files with 47 additions and 16 deletions
|
@ -24,7 +24,7 @@
|
|||
{{ else }}
|
||||
<div class="items">
|
||||
{{ range .feeds }}
|
||||
<article class="item">
|
||||
<article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
|
||||
<div class="item-header">
|
||||
<span class="item-title">
|
||||
{{ if .Icon }}
|
||||
|
@ -44,9 +44,6 @@
|
|||
<li>
|
||||
{{ t "Last check:" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed .CheckedAt }}</time>
|
||||
</li>
|
||||
{{ if ne .ParsingErrorCount 0 }}
|
||||
<li><strong title="{{ .ParsingErrorMsg }}">{{ plural "plural.feed.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -66,6 +63,12 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ if ne .ParsingErrorCount 0 }}
|
||||
<div class="parsing-error">
|
||||
<strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "plural.feed.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong>
|
||||
<small class="parsing-error-message">({{ .ParsingErrorMsg }})</small>
|
||||
</div>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue