mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Number of commits ahead/behind in branch overview (#6695)
* Call Git API to determine divergence of a branch and its base branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show commit divergance in branch list Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds test for diverging commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Try comparing commits instead of branches Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes test as CI can't run it Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjusts signature of percentage function to allow providing multiple integers as numerator Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves CountDivergingCommits function into repofiles module Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
This commit is contained in:
@@ -963,6 +963,42 @@
|
||||
margin-top: 1px!important;
|
||||
}
|
||||
|
||||
&.branches {
|
||||
.commit-divergence {
|
||||
.bar-group {
|
||||
position: relative;
|
||||
float: left;
|
||||
padding-bottom: 6px;
|
||||
width: 90px;
|
||||
|
||||
&:last-child {
|
||||
border-left: 1px solid #b4b4b4;
|
||||
}
|
||||
}
|
||||
.count {
|
||||
margin: 0 3px;
|
||||
&.count-ahead {
|
||||
text-align: left;
|
||||
}
|
||||
&.count-behind {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
.bar {
|
||||
height: 4px;
|
||||
position: absolute;
|
||||
background-color: #d4d4d5;
|
||||
|
||||
&.bar-behind {
|
||||
right: 0;
|
||||
}
|
||||
&.bar-ahead {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.commits {
|
||||
.header {
|
||||
.search {
|
||||
|
Reference in New Issue
Block a user