(refs #642)Fix markdown rendering style

This commit is contained in:
Naoki Takezoe
2015-03-09 19:18:38 +09:00
parent 14becd0bd6
commit cce62de075
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@
} }
</span> </span>
</div> </div>
<div class="box-content commit-commentContent-@comment.commentId"> <div class="box-content commit-commentContent-@comment.commentId markdown-body">
@markdown(comment.content, repository, false, true, true, hasWritePermission) @markdown(comment.content, repository, false, true, true, hasWritePermission)
</div> </div>
</div> </div>

View File

@@ -17,7 +17,7 @@
} }
</span> </span>
</div> </div>
<div class="box-content issue-content" id="issueContent"> <div class="box-content issue-content markdown-body" id="issueContent">
@markdown(issue.get.content getOrElse "No description provided.", repository, false, true, true, hasWritePermission) @markdown(issue.get.content getOrElse "No description provided.", repository, false, true, true, hasWritePermission)
</div> </div>
</div> </div>
@@ -50,7 +50,7 @@
@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>
@markdown(comment.content.substring(0, comment.content.length - 41), repository, false, true, true, hasWritePermission) <div class="markdown-body">@markdown(comment.content.substring(0, comment.content.length - 41), repository, false, true, true, hasWritePermission)</div>
} }
} else { } else {
@if(comment.action == "refer"){ @if(comment.action == "refer"){
@@ -58,7 +58,7 @@
<strong><a href="@path/@repository.owner/@repository.name/issues/@issueId">Issue #@issueId</a>: @rest.mkString(":")</strong> <strong><a href="@path/@repository.owner/@repository.name/issues/@issueId">Issue #@issueId</a>: @rest.mkString(":")</strong>
} }
} else { } else {
@markdown(comment.content, repository, false, true, true, hasWritePermission) <div class="markdown-body">@markdown(comment.content, repository, false, true, true, hasWritePermission)</div>
} }
} }
</div> </div>

View File

@@ -75,7 +75,7 @@
</div> </div>
</div> </div>
@if(milestone.description.isDefined){ @if(milestone.description.isDefined){
<div class="milestone-description"> <div class="milestone-description markdown-body">
@markdown(milestone.description.get, repository, false, false) @markdown(milestone.description.get, repository, false, false)
</div> </div>
} }