(refs #27)Display assigned user on issue list.
1 parent 9d61f73 commit 70761f4ac1bb58449944b7398b5944870457c017
@takezoe takezoe authored on 10 Jul 2013
Showing 4 changed files
View
12
src/main/twirl/helper/avatar.scala.html
@(userName: String, size: Int, styles: String = "")(implicit context: app.Context)
@(userName: String, size: Int, tooltip: Boolean = false, styles: String = "")(implicit context: app.Context)
@import context._
@import view.helpers._
<img src="@url(userName)/_avatar" class="avatar" style="width: @(size)px; height: @(size)px; @styles"/>
@if(tooltip){
<img src="@url(userName)/_avatar" data-toggle="tooltip" title="@userName" class="avatar" style="width: @(size)px; height: @(size)px; @styles"/>
} else {
<img src="@url(userName)/_avatar" class="avatar" style="width: @(size)px; height: @(size)px; @styles"/>
}
View
12
src/main/twirl/issues/list.scala.html
<a href="@url(repository)/issues/@issue.issueId" class="issue-title">@issue.title</a>
@labels.map { label =>
<span class="label-color small" style="background-color: #@label.color; color: #@label.fontColor; padding-left: 4px; padding-right: 4px">@label.labelName</span>
}
<span class="pull-right muted">#@issue.issueId</span>
<span class="pull-right muted">
@issue.assignedUserName.map { userName =>
@helper.html.avatar(userName, 20, true)
}
#@issue.issueId
</span>
<div class="small muted">
Opened by <a href="@url(issue.openedUserName)" class="username">@issue.openedUserName</a> @datetime(issue.registeredDate)&nbsp;
@if(commentCount > 0){
<i class="icon-comment"></i><a href="@url(repository)/issues/@issue.issueId" class="issue-comment-count">@commentCount @plural(commentCount, "comment")</a>
View
2
■■■
src/main/twirl/repo/commits.scala.html
<a href="@url(repository)/commit/@commit.id" class="btn btn-small monospace">@commit.id.substring(0, 10)</a><br>
<a href="@url(repository)/tree/@commit.id" class="small">Browse code</a>
</div>
<div>
@helper.html.avatar(commit.committer, 40, "float: left; margin-right: 4px;")
@helper.html.avatar(commit.committer, 40, styles = "float: left; margin-right: 4px;")
<a href="@url(repository)/commit/@commit.id" class="commit-message" style="font-weight: bold;">@link(commit.summary, repository)</a>
@if(commit.description.isDefined){
<a href="javascript:void(0)" onclick="$('#description-@commit.id').toggle();" class="omit">...</a>
}
View
8
src/main/webapp/assets/common/js/gitbucket.js
$(function(){
$.ajaxSetup({
cache: false
});
$.ajaxSetup({ cache: false });
 
$('#repository-url').click(function(){
this.select(0, this.value.length);
});
 
$('img[data-toggle=tooltip]').tooltip();
 
prettyPrint();
});