19 lines
476 B
Plaintext
19 lines
476 B
Plaintext
package watchlist
|
|
|
|
import (
|
|
"fmt"
|
|
db "mal/internal/db"
|
|
"mal/web/shared"
|
|
)
|
|
|
|
templ Progress(entry db.GetUserWatchListRow) {
|
|
if entry.CurrentEpisode.Valid && entry.CurrentEpisode.Int64 > 0 && entry.Status != "completed" {
|
|
<p class="m-0 mt-1 text-xs text-(--text-faint)">
|
|
Continue ep { fmt.Sprintf("%d", entry.CurrentEpisode.Int64) }
|
|
if entry.CurrentTimeSeconds > 0 {
|
|
{ fmt.Sprintf(" · %s", shared.FormatProgressTime(entry.CurrentTimeSeconds)) }
|
|
}
|
|
</p>
|
|
}
|
|
}
|