@if (loading) {
载入中
} @else if (!user) {

Osaet Admin

登录后台

{{ loginMessage }}

} @else {
{{ user.username }}
@if (feedback) { } @if (view === 'list') {

Posts

文章管理

@if (posts.length === 0) {

暂无文章

} @else {
标题 标签 状态 更新时间 操作
@for (post of posts; track post.id) {
{{ post.title || '未命名' }} {{ tagText(post) }} {{ statusText(post.status) }} {{ formatDate(post.updatedAt) }} 编辑 删除
} }
} @else {

{{ currentPost ? '版本 ' + currentPost.version : '新文章' }}

{{ draft.title || '开始写作' }} @if (hasUnsavedChanges()) { }

{{ editorMessage }}

{{ autosaveStatus }}
@if (currentBuildJob) {

Build Job

{{ buildStatusText(currentBuildJob.status) }}

ID
{{ currentBuildJob.id }}
开始
{{ formatDate(currentBuildJob.startedAt) }}
结束
{{ formatDate(currentBuildJob.finishedAt) }}
@if (currentBuildJob.error) {

{{ currentBuildJob.error }}

} @if (showBuildLog) {
{{ currentBuildJob.log || '暂无日志' }}
}
}
}
}