summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-03-22 11:43:54 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-22 18:43:54 +0800
commit14fe9010ae8aecc0bcd38059b4c71256524b5341 (patch)
tree6a4740387d288ea8cd433412d36624e30912d5ee /public
parent9224405155322e096e7f2d0f9eed35633b937951 (diff)
downloadgitea-14fe9010ae8aecc0bcd38059b4c71256524b5341.tar.gz
gitea-14fe9010ae8aecc0bcd38059b4c71256524b5341.zip
GPG commit validation (#1150)
* GPG commit validation * Add translation + some little fix * Move hash calc after retrieving of potential key + missing translation * Add some little test
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css35
-rw-r--r--public/less/_repository.less39
2 files changed, 70 insertions, 4 deletions
diff --git a/public/css/index.css b/public/css/index.css
index 3863042bc3..01ffd7e928 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -1924,8 +1924,29 @@ footer .ui.language .menu {
padding-left: 15px;
}
.repository #commits-table thead .sha {
- font-size: 13px;
- padding: 6px 40px 4px 35px;
+ text-align: center;
+ width: 140px;
+}
+.repository #commits-table td.sha .sha.label {
+ margin: 0;
+}
+.repository #commits-table td.sha .sha.label.isSigned {
+ border: 1px solid #BBB;
+}
+.repository #commits-table td.sha .sha.label.isSigned .detail.icon {
+ background: #FAFAFA;
+ margin: -6px -10px -4px 0px;
+ padding: 5px 3px 5px 6px;
+ border-left: 1px solid #BBB;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.repository #commits-table td.sha .sha.label.isSigned.isVerified {
+ border: 1px solid #21BA45;
+ background: #21BA4518;
+}
+.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon {
+ border-left: 1px solid #21BA4580;
}
.repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) {
background-color: rgba(0, 0, 0, 0.02) !important;
@@ -2239,6 +2260,16 @@ footer .ui.language .menu {
margin-left: 26px;
padding-top: 0;
}
+.repository .ui.attached.isSigned.isVerified:not(.positive) {
+ border-left: 1px solid #A3C293;
+ border-right: 1px solid #A3C293;
+}
+.repository .ui.attached.isSigned.isVerified.top:not(.positive) {
+ border-top: 1px solid #A3C293;
+}
+.repository .ui.attached.isSigned.isVerified:not(.positive):last-child {
+ border-bottom: 1px solid #A3C293;
+}
.user-cards .list {
padding: 0;
}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 2009847670..406dfb2ac8 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -800,8 +800,31 @@
padding-left: 15px;
}
.sha {
- font-size: 13px;
- padding: 6px 40px 4px 35px;
+ text-align: center;
+ width: 140px;
+ }
+ }
+ td.sha{
+ .sha.label{
+ margin: 0;
+ &.isSigned{
+ border: 1px solid #BBB;
+ .detail.icon{
+ background: #FAFAFA;
+ margin: -6px -10px -4px 0px;
+ padding: 5px 3px 5px 6px;
+ border-left: 1px solid #BBB;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ }
+ }
+ &.isSigned.isVerified{
+ border: 1px solid #21BA45;
+ background: #21BA4518;
+ .detail.icon{
+ border-left: 1px solid #21BA4580;
+ }
+ }
}
}
&.ui.basic.striped.table tbody tr:nth-child(2n) {
@@ -1206,6 +1229,18 @@
}
}
}
+ .ui.attached.isSigned.isVerified{
+ &:not(.positive){
+ border-left: 1px solid #A3C293;
+ border-right: 1px solid #A3C293;
+ }
+ &.top:not(.positive){
+ border-top: 1px solid #A3C293;
+ }
+ &:not(.positive):last-child {
+ border-bottom: 1px solid #A3C293;
+ }
+ }
}
// End of .repository