From 4b0787b12bff23b3f0873ee0dd3d8f0e3f9fb0af Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Jun 2021 12:09:51 +0200 Subject: Added a proper blob page --- README.md | 2 +- src/frontend/components/RepositoryTreeBlob.vue | 133 ++++++++++++++++++++++++- src/frontend/scss/style.scss | 5 + 3 files changed, 138 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3e14eb..4210470 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Githermit will probably **never** be as fast as cgit, Gitweb & Stagit. But that' - [x] Cloning - [ ] Refs page - [x] Tree page -- [ ] Blob page +- [x] Blob page - [ ] Markdown support - [ ] Tests diff --git a/src/frontend/components/RepositoryTreeBlob.vue b/src/frontend/components/RepositoryTreeBlob.vue index a0a7514..f287f47 100644 --- a/src/frontend/components/RepositoryTreeBlob.vue +++ b/src/frontend/components/RepositoryTreeBlob.vue @@ -1,8 +1,23 @@ \ No newline at end of file diff --git a/src/frontend/scss/style.scss b/src/frontend/scss/style.scss index 1f2cd6a..0cc748d 100644 --- a/src/frontend/scss/style.scss +++ b/src/frontend/scss/style.scss @@ -353,6 +353,11 @@ th { } } +[line]::before { + content: attr(line); + padding-right: 10px; +} + @include media-breakpoint-down(sm) { .commit-file table tbody tr td { padding-left: 4px; -- cgit v1.2.3-18-g5258