From 17c400d15c5337f6a2a059b6149ce8733bd45df2 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 10 Oct 2022 18:42:49 +0800 Subject: [PATCH] feat(web): display assignments in sidebar --- web/app/controllers/index.php | 2 +- web/app/locale/basic/en.php | 2 ++ web/app/locale/basic/zh-cn.php | 2 ++ web/app/views/sidebar.php | 57 +++++++++++++++++++++++++++++++--- 4 files changed, 58 insertions(+), 5 deletions(-) diff --git a/web/app/controllers/index.php b/web/app/controllers/index.php index 2f570fd..a928688 100644 --- a/web/app/controllers/index.php +++ b/web/app/controllers/index.php @@ -157,7 +157,7 @@ - + '', 'groups_hidden' => '']) ?> diff --git a/web/app/locale/basic/en.php b/web/app/locale/basic/en.php index 11cf62b..44fd378 100644 --- a/web/app/locale/basic/en.php +++ b/web/app/locale/basic/en.php @@ -14,6 +14,7 @@ return [ 'problems lists' => 'Problems Lists', 'groups' => 'Groups', 'add new group' => 'Add new group', + 'group announcements' => 'Group Announcements', 'users count' => 'Users', 'submissions' => 'Submissions', 'hacks' => 'Hack!', @@ -30,6 +31,7 @@ return [ 'search' => 'Search', 'news' => 'News', 'assignments' => 'Assignments', + 'assignments to do' => 'Assignments to do', 'username' => 'Username', 'password' => 'Password', 'new password' => 'New password', diff --git a/web/app/locale/basic/zh-cn.php b/web/app/locale/basic/zh-cn.php index 134891e..133eeba 100644 --- a/web/app/locale/basic/zh-cn.php +++ b/web/app/locale/basic/zh-cn.php @@ -14,6 +14,7 @@ return [ 'problems lists' => '题单', 'groups' => '小组', 'add new group' => '添加新小组', + 'group announcements' => '小组公告', 'users count' => '用户数量', 'submissions' => '提交记录', 'hacks' => 'Hack!', @@ -30,6 +31,7 @@ return [ 'search' => '搜索', 'news' => '最新动态', 'assignments' => '作业', + 'assignments to do' => '待完成作业', 'username' => '用户名', 'password' => '密码', 'new password' => '新密码', diff --git a/web/app/views/sidebar.php b/web/app/views/sidebar.php index c748b73..ec202f4 100644 --- a/web/app/views/sidebar.php +++ b/web/app/views/sidebar.php @@ -1,10 +1,10 @@ - +
- 小组公告 +
-
(暂无公告)
+
+ +
+ + +getTimestamp() - $deadline_b->getTimestamp(); + }); + ?> + +
+
+ +
+ +
+ + - +