mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Improve presentation of signed commit verification
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
<div class="pull-right text-right">
|
<div class="pull-right text-right">
|
||||||
@if(commit.commitSign.isDefined){
|
@if(commit.commitSign.isDefined){
|
||||||
@commit.verified.map{ v =>
|
@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{
|
}.getOrElse{
|
||||||
<span class="gpg-unverified">Unverified</span>
|
<span class="gpg-unverified">Unverified</span>
|
||||||
}
|
}
|
||||||
@@ -128,6 +128,8 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
|
||||||
$('.toggle-check').click(function(){
|
$('.toggle-check').click(function(){
|
||||||
var div = $(this).next('div');
|
var div = $(this).next('div');
|
||||||
if(div.is(':visible')){
|
if(div.is(':visible')){
|
||||||
|
|||||||
@@ -1088,6 +1088,22 @@ div.author-info div.committer {
|
|||||||
font-size: 30px;
|
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 */
|
/* Diff */
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user