From 922c0df12f9b99a7e9258448adf255e033035e08 Mon Sep 17 00:00:00 2001 From: phachon Date: Wed, 29 Aug 2018 18:54:20 +0800 Subject: [PATCH] fix project list search (#28) --- app/controllers/project.go | 2 +- views/project/list.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/project.go b/app/controllers/project.go index 9c9a4f6..0d8036c 100644 --- a/app/controllers/project.go +++ b/app/controllers/project.go @@ -143,7 +143,7 @@ func (this *ProjectController) List() { var err error var count int64 var projects []map[string]string - if (len(keywords) > 0) { + if len(keywords) > 0 { count, err = models.ProjectModel.CountProjectsByKeywords(keywords) projects, err = models.ProjectModel.GetProjectsByKeywordsAndLimit(keywords, limit, number) }else { diff --git a/views/project/list.html b/views/project/list.html index 33957e1..107e0d5 100644 --- a/views/project/list.html +++ b/views/project/list.html @@ -10,16 +10,16 @@
项目组
- +