@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 if (view === 'logs') {

Audit

操作日志

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

暂无日志

} @else {
时间 用户 动作 资源 详情 IP
@for (log of auditLogs; track log.id) {
{{ formatDate(log.createdAt) }} {{ log.actorUsername || '匿名' }} {{ actionText(log.action) }} {{ log.resourceType || '-' }} {{ log.resourceId || '' }} {{ detailsText(log) }} {{ log.ipAddress || '-' }}
} }
} @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 || '暂无日志' }}
}
}
}
}