Improve presentation of signed commit verification

This commit is contained in:
Naoki Takezoe
2019-03-16 22:43:23 +09:00
parent 8705d3450a
commit 1c6bdc7369
2 changed files with 19 additions and 1 deletions

View File

@@ -42,7 +42,7 @@
<div class="pull-right text-right">
@if(commit.commitSign.isDefined){
@commit.verified.map{ v =>
<span class="gpg-verified">Verified signed by @v.signedUser (@v.signedKeyId)</span>
<span class="gpg-verified" data-toggle="tooltip" title="Signed by @v.signedUser (@v.signedKeyId)">Verified</span>
}.getOrElse{
<span class="gpg-unverified">Unverified</span>
}
@@ -128,6 +128,8 @@
</nav>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip();
$('.toggle-check').click(function(){
var div = $(this).next('div');
if(div.is(':visible')){

View File

@@ -1088,6 +1088,22 @@ div.author-info div.committer {
font-size: 30px;
}
.gpg-verified {
color: #3c763d;
border: 1px solid #3c763d;
border-radius: 3px;
padding-left: 4px;
padding-right: 4px;
}
.gpg-unverified {
color: #777;
border: 1px solid #777;
border-radius: 3px;
padding-left: 4px;
padding-right: 4px;
}
/****************************************************************************/
/* Diff */
/****************************************************************************/