mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-13 00:45:49 +01:00
Fix markdown preview style
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user