From c856f447ed1e06eb097aecf24ac607b8f55a3244 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 28 Jan 2021 21:49:34 +0800 Subject: [PATCH] add balance page. --- options/locale/locale_zh-CN.ini | 3 +++ templates/repo/blockchain/index.tmpl | 36 +++++++++++++++++++++++++----------- templates/repo/header.tmpl | 4 ++-- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 087f5ce72..8df65bd2a 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -754,6 +754,9 @@ cloudbrain.desc=云脑功能 cloudbrain.cancel=取消 cloudbrain.commit_image=提交 balance=余额 +balance.total_view=余额总览 +balance.available=可用余额: +balance.disable=不可用余额: template.items=模板选项 template.git_content=Git数据(默认分支) diff --git a/templates/repo/blockchain/index.tmpl b/templates/repo/blockchain/index.tmpl index 3ce0f0e8b..d848a8e0a 100755 --- a/templates/repo/blockchain/index.tmpl +++ b/templates/repo/blockchain/index.tmpl @@ -2,19 +2,33 @@
{{template "repo/header" .}}
- -
-
-

{{.i18n.Tr "repo.balance"}}

-
+

+ {{.i18n.Tr "repo.balance.total_view"}} +

-
-
+
+ {{.i18n.Tr "repo.balance.available"}}121 +
-
- {{.balance}} -
+
+ {{.i18n.Tr "repo.balance.disable"}}121
+ +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} + + \ No newline at end of file diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index c21a50c4e..27486fd01 100755 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -145,8 +145,8 @@ {{end}} - - {{svg "octicon-balance" 16}} + + {{svg "octicon-law" 16}} {{.i18n.Tr "repo.balance"}}