From e0afae8184cdbb46ac370b0bf93ccaca1fda7aff Mon Sep 17 00:00:00 2001 From: ouqiang Date: Sun, 23 Apr 2017 19:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/common/pagination.html | 6 +++++- templates/task/task_form.html | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/common/pagination.html b/templates/common/pagination.html index dbc75e7..c7d9242 100644 --- a/templates/common/pagination.html +++ b/templates/common/pagination.html @@ -1,3 +1,5 @@ +{{{if gt .Pagination.Total 0}}} + + +{{{end}}} \ No newline at end of file diff --git a/templates/task/task_form.html b/templates/task/task_form.html index 7df2f19..cff7f49 100644 --- a/templates/task/task_form.html +++ b/templates/task/task_form.html @@ -45,8 +45,8 @@ {{{range $i, $v := .Hosts}}} - {{{end}}} - + {{{end}}} +