{%extends "base.tera"%} {%block content%}

{{book.name}}

{# pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub author_id: i32, #[sea_orm(unique)] pub name: String, pub chapters: i32, pub file_folder: String, } #} {# pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub account_id: i32, pub music_id: i32, pub chapter_no: i32, #[sea_orm(column_type = "Double")] pub progress: f64, } #}
name: {{book.name}}
author:{{author.name}}
last read: chapter: {{progress.chapter_no}}, time:{{progress.progress /60 | round}}:{{progress.progress % 60 |round }}
chapters: {{book.chapters}}
{%for chapter in range(start=1,end=(book.chapters+1))%} {%endfor%}
{%endblock content%}