summaryrefslogtreecommitdiffstats
path: root/templates/home.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-14 04:11:33 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-14 04:11:33 -0400
commitc36e7d322e74a55749ce2c2934c6fcfa82cff274 (patch)
treedbd2c05336815be91f1c59d654ce6f6f24d72872 /templates/home.tmpl
parent57f84fb0516d46b27c60554730956f0c9dff68dd (diff)
downloadgitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.tar.gz
gitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.zip
Mirror updates
Diffstat (limited to 'templates/home.tmpl')
-rw-r--r--templates/home.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/home.tmpl b/templates/home.tmpl
index d3a8c0c343..5827f61810 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -1,8 +1,27 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body" class="container">
+ {{if not .Repos}}
<h4>Hey there, welcome to the land of Gogs!</h4>
<p>If you just get your Gogs server running, go <a href="/install">install</a> guide page will help you setup things for your first-time run.</p>
<img src="http://gowalker.org/public/gogs_demo.gif">
+ {{else}}
+ <h4>Hey there, welcome to the land of Gogs!</h4>
+ <h5>Here are some recent updated repositories:</h5>
+ <div class="tab-pane active">
+ <ul class="list-unstyled repo-list">
+ {{range .Repos}}
+ <li>
+ <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
+ <h4>
+ <a href="/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a>
+ </h4>
+ <p class="desc">{{.Description}}</p>
+ <div class="info">Last updated {{.Updated|TimeSince}}</div>
+ </li>
+ {{end}}
+ </ul>
+ </div>
+ {{end}}
</div>
{{template "base/footer" .}}