mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
(refs #27)Display assigned user on issue list.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
@(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"/>
|
||||
}
|
||||
|
||||
@@ -217,7 +217,12 @@
|
||||
@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)
|
||||
@if(commentCount > 0){
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<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>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
$(function(){
|
||||
$.ajaxSetup({
|
||||
cache: false
|
||||
});
|
||||
$.ajaxSetup({ cache: false });
|
||||
|
||||
$('#repository-url').click(function(){
|
||||
this.select(0, this.value.length);
|
||||
});
|
||||
|
||||
$('img[data-toggle=tooltip]').tooltip();
|
||||
|
||||
prettyPrint();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user