Fix avatar image style.

This commit is contained in:
takezoe
2013-07-11 00:49:03 +09:00
parent 70761f4ac1
commit 5d5b642fa9
3 changed files with 9 additions and 4 deletions

View File

@@ -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 view.helpers._
@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 {
<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;"/>
}

View File

@@ -38,7 +38,7 @@
<a href="@url(repository)/tree/@commit.id" class="small">Browse code</a>
</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>
@if(commit.description.isDefined){
<a href="javascript:void(0)" onclick="$('#description-@commit.id').toggle();" class="omit">...</a>

View File

@@ -305,6 +305,11 @@ th, td, .table th, .table td {
padding-bottom: 4px;
}
div.commit-avatar-image {
float: left;
margin-right: 4px;
}
pre.commit-description {
font-weight: normal;
border: none;