mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-13 17:05:50 +01:00
Fix avatar image style.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
@(userName: String, size: Int, tooltip: Boolean = false, styles: String = "")(implicit context: app.Context)
|
@(userName: String, size: Int, tooltip: Boolean = false)(implicit context: app.Context)
|
||||||
@import context._
|
@import context._
|
||||||
@import view.helpers._
|
@import view.helpers._
|
||||||
@if(tooltip){
|
@if(tooltip){
|
||||||
<img src="@url(userName)/_avatar" data-toggle="tooltip" title="@userName" class="avatar" style="width: @(size)px; height: @(size)px; @styles"/>
|
<img src="@url(userName)/_avatar" data-toggle="tooltip" title="@userName" class="avatar" style="width: @(size)px; height: @(size)px;"/>
|
||||||
} else {
|
} else {
|
||||||
<img src="@url(userName)/_avatar" class="avatar" style="width: @(size)px; height: @(size)px; @styles"/>
|
<img src="@url(userName)/_avatar" class="avatar" style="width: @(size)px; height: @(size)px;"/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<a href="@url(repository)/tree/@commit.id" class="small">Browse code</a>
|
<a href="@url(repository)/tree/@commit.id" class="small">Browse code</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@helper.html.avatar(commit.committer, 40, styles = "float: left; margin-right: 4px;")
|
<div class="commit-avatar-image">@helper.html.avatar(commit.committer, 40)</div>
|
||||||
<a href="@url(repository)/commit/@commit.id" class="commit-message" style="font-weight: bold;">@link(commit.summary, repository)</a>
|
<a href="@url(repository)/commit/@commit.id" class="commit-message" style="font-weight: bold;">@link(commit.summary, repository)</a>
|
||||||
@if(commit.description.isDefined){
|
@if(commit.description.isDefined){
|
||||||
<a href="javascript:void(0)" onclick="$('#description-@commit.id').toggle();" class="omit">...</a>
|
<a href="javascript:void(0)" onclick="$('#description-@commit.id').toggle();" class="omit">...</a>
|
||||||
|
|||||||
@@ -305,6 +305,11 @@ th, td, .table th, .table td {
|
|||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.commit-avatar-image {
|
||||||
|
float: left;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
pre.commit-description {
|
pre.commit-description {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user