Skip to content

Commit

Permalink
Added edit link, updated_at into universities index page.
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Apr 29, 2024
1 parent 3d62047 commit 3b0ea85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/universities/index_page.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ HEREDOC
th "报考编码"
th "大学名称"
th "录取批次"
th "修改时间"
end
end

Expand All @@ -38,8 +39,11 @@ HEREDOC
tr do
td university.id
td university.code.to_s
td university.name.to_s
td do
link university.name, Edit.with(university)
end
td university.batch_level.display_name
td university.updated_at.to_s("%m月%d日 %H:%M:%S")
end
end
end
Expand Down

0 comments on commit 3b0ea85

Please sign in to comment.