summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-27 15:24:11 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-27 15:24:11 -0400
commitf76eb8a6662dd705f4c59fd59e583a315a1900d2 (patch)
tree24ec9b457cf5be1b018a72e65e68ee1bc82f5ca5 /templates
parent6b43067e1be051e8cd353d332d61613e18ad11f4 (diff)
downloadgitea-f76eb8a6662dd705f4c59fd59e583a315a1900d2.tar.gz
gitea-f76eb8a6662dd705f4c59fd59e583a315a1900d2.zip
IP: RC Code Review
Diffstat (limited to 'templates')
-rw-r--r--templates/issue/list.tmpl5
-rw-r--r--templates/issue/user.tmpl39
2 files changed, 14 insertions, 30 deletions
diff --git a/templates/issue/list.tmpl b/templates/issue/list.tmpl
index 401a53a3ed..b8947d9fc5 100644
--- a/templates/issue/list.tmpl
+++ b/templates/issue/list.tmpl
@@ -7,8 +7,9 @@
<div class="col-md-3 filter-list">
<ul class="list-unstyled">
<li><a href="#" class="active">All Issues <strong class="pull-right">{{.IssueCount}}</strong></a></li>
- <!-- <li><a href="#">My Issues</a></li>
- <li><a href="#">Mentioned</a></li> -->
+ <!-- <li><a href="#">Assigned to you</a></li> -->
+ <li><a href="#">Created by you</a></li>
+ <!-- <li><a href="#">Mentioned</a></li> -->
</ul>
</div>
<div class="col-md-9">
diff --git a/templates/issue/user.tmpl b/templates/issue/user.tmpl
index 2cf9571306..cf5e365dcf 100644
--- a/templates/issue/user.tmpl
+++ b/templates/issue/user.tmpl
@@ -17,8 +17,9 @@
<div class="col-md-3 filter-list">
<ul class="list-unstyled">
<li><a href="#" class="active">In your repositories <strong class="pull-right">10</strong></a></li>
+ <!-- <li><a href="#">Assigned to you</a></li> -->
<li><a href="#">Created by you</a></li>
- <li><a href="#">Assigned to you</a></li>
+ <!-- <li><a href="#">Assigned to you</a></li> -->
<li><hr/></li>
<li><a href="" class="sm">gogits/gogs <strong class="pull-right">12</strong></a></li>
<li><a href="" class="sm">gogits/session <strong class="pull-right">8</strong></a></li>
@@ -33,36 +34,18 @@
</div>
</div>
<div class="issues list-group">
- <div class="list-group-item unread issue-item" id="issue-id">
- <span class="number pull-right">#123</span>
- <h5 class="title"><a href="#">Bug: When running tests after generating a beego app, templates do not load.</a></h5>
+ {{range .Issues}}
+ <div class="list-group-item issue-item" id="issue-{{.Id}}">
+ <span class="number pull-right">#{{.Index}}</span>
+ <h5 class="title"><a href="/{{$.RepositoryLink}}/issues/{{.Index}}">{{.Name}}</a></h5>
<p class="info">
- <span class="author"><img class="avatar" src="http://tp2.sinaimg.cn/5068084885/50/40050297589/1" alt="" width="20"/>
- <a href="#">Obama</a></span>
- <span class="time">3 days ago</span>
- <span class="comment"><i class="fa fa-comments"></i> 3</span>
- </p>
- </div>
- <div class="list-group-item issue-item" id="issue-id2">
- <span class="number pull-right">#123</span>
- <h5 class="title"><a href="#">Bug: When running tests after generating a beego app, templates do not load.</a></h5>
- <p class="info">
- <span class="author"><img class="avatar" src="http://tp2.sinaimg.cn/5068084885/50/40050297589/1" alt="" width="20"/>
- <a href="#">Obama</a></span>
- <span class="time">3 days ago</span>
- <span class="comment"><i class="fa fa-comments"></i> 3</span>
- </p>
- </div>
- <div class="list-group-item issue-item" id="issue-id3">
- <span class="number pull-right">#123</span>
- <h5 class="title"><a href="#">Bug: When running tests after generating a beego app, templates do not load.</a></h5>
- <p class="info">
- <span class="author"><img class="avatar" src="http://tp2.sinaimg.cn/5068084885/50/40050297589/1" alt="" width="20"/>
- <a href="#">Obama</a></span>
- <span class="time">3 days ago</span>
- <span class="comment"><i class="fa fa-comments"></i> 3</span>
+ <span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/>
+ <a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span>
+ <span class="time">{{TimeSince .Created}}</span>
+ <span class="comment"><i class="fa fa-comments"></i> {{.NumComments}}</span>
</p>
</div>
+ {{end}}
</div>
</div>
</div>