From a260eb539eebef210f2843de1223ccf7e8dfcb97 Mon Sep 17 00:00:00 2001 From: chenshihai Date: Wed, 2 Nov 2022 14:41:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bugs=20=09#3061=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=AF=E6=99=BAnpu=E8=AE=AD=E7=BB=83=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=9F=BA=E4=BA=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=A9=BA=20=09#3057=20=E3=80=90=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E3=80=91=E5=B7=B2=E8=AF=BB=E6=B6=88=E6=81=AFtab?= =?UTF-8?q?=E9=A1=B5=E7=BF=BB=E9=A1=B5=E5=8A=9F=E8=83=BD=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=20=09#3058=20=E3=80=90=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E3=80=91=E8=8B=B1=E6=96=87=E7=95=8C=E9=9D=A2=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BD=93=E9=AA=8C=E8=8F=9C=E5=8D=95=E4=BB=8D=E7=84=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E4=B8=AD=E6=96=87=20=09#1945=20=E3=80=90?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E3=80=91=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=88=87=E5=88=B0=E5=85=B6=E5=AE=83=E7=BB=84=E7=BB=87=E5=86=8D?= =?UTF-8?q?=E5=88=87=E5=9B=9E=E8=87=AA=E5=B7=B1=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + routers/user/notification.go | 4 ++-- templates/base/head_navbar.tmpl | 4 ++-- templates/base/head_navbar_fluid.tmpl | 4 ++-- templates/base/head_navbar_home.tmpl | 4 ++-- templates/base/head_navbar_pro.tmpl | 4 ++-- templates/user/dashboard/navbar.tmpl | 2 +- 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index e7d730027..3013fcdaa 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1036,6 +1036,7 @@ cloudbrain.time.starttime=Start run time cloudbrain.time.endtime=End run time cloudbrain.datasetdownload=Dataset download url model_manager = Model +model_experience = Model Experience model_noright=You have no right to do the operation. model_rename=Duplicate model name, please modify model name. diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 972865484..e4abf5f11 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -1036,6 +1036,7 @@ datasets.desc=数据集功能 cloudbrain_helper=使用GPU/NPU资源,开启Notebook、模型训练任务等 model_manager = 模型 +model_experience = 模型体验 model_noright=您没有操作权限。 model_rename=模型名称重复,请修改模型名称 diff --git a/routers/user/notification.go b/routers/user/notification.go index 0fd6df007..d66e893a4 100644 --- a/routers/user/notification.go +++ b/routers/user/notification.go @@ -132,11 +132,11 @@ func getNotifications(c *context.Context) { } c.Data["Title"] = c.Tr("notifications") - //c.Data["Keyword"] = keyword + c.Data["Type"] = keyword c.Data["Status"] = status c.Data["Notifications"] = notifications - pager.SetDefaultParams(c) + pager.AddParam(c, "q", "Type") c.Data["Page"] = pager } diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index f9908f6f0..50521516f 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -38,7 +38,7 @@ {{.i18n.Tr "repo.model_manager"}} diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl index 010568e8d..b2fd60787 100644 --- a/templates/base/head_navbar_fluid.tmpl +++ b/templates/base/head_navbar_fluid.tmpl @@ -38,7 +38,7 @@ {{.i18n.Tr "repo.model_manager"}}