aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:31:44 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:31:44 +0800
commite3a27aeb25f5de7daaf279ec049830628e2cc3a6 (patch)
tree130bcfafe5bd8ef7d826d8b25714821e1cb28694 /templates/repo/home.tmpl
parentdccc50e9d4d217cea91d76f17fa60bf5c0a6fb03 (diff)
downloadgitea-e3a27aeb25f5de7daaf279ec049830628e2cc3a6.tar.gz
gitea-e3a27aeb25f5de7daaf279ec049830628e2cc3a6.zip
template and ui fix
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index a9d7f30403..476277a807 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -4,9 +4,11 @@
{{template "repo/header" .}}
<div id="repo-content" class="clear container">
<div id="repo-main" class="left grid-5-6">
- <p id="repo-desc">
+ <p id="repo-desc">{{if .Repository.DescriptionHtml}}
<span class="description">{{.Repository.DescriptionHtml}}</span>
- <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
+ <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{else}}
+ <span class="no-description text-italic"><i>No Description</i></span>
+ {{end}}
</p>
<ul id="repo-file-nav" class="clear menu menu-line">
<!-- <li>