Fix markdown preview style

This commit is contained in:
Naoki Takezoe
2015-11-08 22:26:43 +09:00
parent a3e3aea4e0
commit 3fd23f1749

View File

@@ -46,11 +46,11 @@
} }
</span> </span>
</div> </div>
<div class="box-content-bottom issue-content" id="commentContent-@comment.commentId"> <div class="box-content-bottom issue-content markdown-body" id="commentContent-@comment.commentId">
@if(comment.action == "commit" && comment.content.split(" ").last.matches("[a-f0-9]{40}")){ @if(comment.action == "commit" && comment.content.split(" ").last.matches("[a-f0-9]{40}")){
@defining(comment.content.substring(comment.content.length - 40)){ id => @defining(comment.content.substring(comment.content.length - 40)){ id =>
<div class="pull-right"><a href="@path/@repository.owner/@repository.name/commit/@id" class="monospace">@id.substring(0, 7)</a></div> <div class="pull-right"><a href="@path/@repository.owner/@repository.name/commit/@id" class="monospace">@id.substring(0, 7)</a></div>
<div class="markdown-body">@markdown(comment.content.substring(0, comment.content.length - 41), repository, false, true, true, hasWritePermission)</div> @markdown(comment.content.substring(0, comment.content.length - 41), repository, false, true, true, hasWritePermission)
} }
} else { } else {
@if(comment.action == "refer"){ @if(comment.action == "refer"){
@@ -58,7 +58,7 @@
<strong>@issueLink(repository, issueId.toInt): @rest.mkString(":")</strong> <strong>@issueLink(repository, issueId.toInt): @rest.mkString(":")</strong>
} }
} else { } else {
<div class="markdown-body">@markdown(comment.content, repository, false, true, true, hasWritePermission)</div> @markdown(comment.content, repository, false, true, true, hasWritePermission)
} }
} }
</div> </div>