summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2019-07-17 20:02:41 +0000
committertechknowlogick <techknowlogick@gitea.io>2019-07-17 16:02:41 -0400
commitc8aa46d27bbd2c85c75f11b22aba2b0197b82bde (patch)
tree59e4789db1e4312e0a156afd6babfa812b3c8601 /public/less
parent34516603adfdc33a9d4b8186d2aa81d34972b8b9 (diff)
downloadgitea-c8aa46d27bbd2c85c75f11b22aba2b0197b82bde.tar.gz
gitea-c8aa46d27bbd2c85c75f11b22aba2b0197b82bde.zip
Add Extra Info to Branches Page (#7461)
* Add branch protection information to branches page This change will add a tag on the ui that indicates whether a branch is protected on the repository branches page. Signed-off-by: Gary Kim <gary@garykim.dev> * Add last commit information to repo branches page This change adds the ID and commit message of the last commit on a branch to the branches page for repositories. Signed-off-by: Gary Kim <gary@garykim.dev> * Make branch page commit message truncate in css rather then template The truncating of commit messages shown under branches in the repository branches page has been moved to using css rather then the Go template as the template was causing some issues when the commit messaged had a link when rendered. This commit also makes the commit message paragraph itself use flex in order to make managing its elements easier. Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_explore.less9
1 files changed, 8 insertions, 1 deletions
diff --git a/public/less/_explore.less b/public/less/_explore.less
index c5065a35bc..11dacb7285 100644
--- a/public/less/_explore.less
+++ b/public/less/_explore.less
@@ -62,9 +62,16 @@
}
.ui.repository.branches {
- .time {
+ .info {
font-size: 12px;
color: #808080;
+ display: flex;
+ white-space: pre;
+ .commit-message {
+ max-width: 72em;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}