${highlighted}
`;
}
- const mdContent = $('#md-content');
+ const mdContent = $('#p3x-gitlist-readme');
if (mdContent.length) {
- global.gitlist.setTheme();
const html = marked(mdContent.text(), {
renderer: markdownRenderer
});
diff --git a/public/js/themes.js b/public/js/themes.js
index a82ab7ff..0817bf1a 100755
--- a/public/js/themes.js
+++ b/public/js/themes.js
@@ -1,22 +1,22 @@
const themes = {
- "bootstrap-default": "/generated/css/bootstrap-default.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-solar": "/generated/css/bootstrap-solar.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-cerulean": "/generated/css/bootstrap-cerulean.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-cosmo": "/generated/css/bootstrap-cosmo.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-cyborg": "/generated/css/bootstrap-cyborg.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-darkly": "/generated/css/bootstrap-darkly.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-flatly": "/generated/css/bootstrap-flatly.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-journal": "/generated/css/bootstrap-journal.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-lumen": "/generated/css/bootstrap-lumen.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-paper": "/generated/css/bootstrap-paper.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-readable": "/generated/css/bootstrap-readable.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-sandstone": "/generated/css/bootstrap-sandstone.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-simplex": "/generated/css/bootstrap-simplex.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-slate": "/generated/css/bootstrap-slate.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-spacelab": "/generated/css/bootstrap-spacelab.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-superhero": "/generated/css/bootstrap-superhero.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-united": "/generated/css/bootstrap-united.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css",
- "bootstrap-yeti": "/generated/css/bootstrap-yeti.62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5.css"
+ "bootstrap-default": "/generated/css/bootstrap-default.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-solar": "/generated/css/bootstrap-solar.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-cerulean": "/generated/css/bootstrap-cerulean.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-cosmo": "/generated/css/bootstrap-cosmo.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-cyborg": "/generated/css/bootstrap-cyborg.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-darkly": "/generated/css/bootstrap-darkly.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-flatly": "/generated/css/bootstrap-flatly.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-journal": "/generated/css/bootstrap-journal.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-lumen": "/generated/css/bootstrap-lumen.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-paper": "/generated/css/bootstrap-paper.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-readable": "/generated/css/bootstrap-readable.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-sandstone": "/generated/css/bootstrap-sandstone.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-simplex": "/generated/css/bootstrap-simplex.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-slate": "/generated/css/bootstrap-slate.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-spacelab": "/generated/css/bootstrap-spacelab.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-superhero": "/generated/css/bootstrap-superhero.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-united": "/generated/css/bootstrap-united.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css",
+ "bootstrap-yeti": "/generated/css/bootstrap-yeti.78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb.css"
};
module.exports = themes;
diff --git a/public/less/blame-view.less b/public/less/blame-view.less
deleted file mode 100644
index 7917d376..00000000
--- a/public/less/blame-view.less
+++ /dev/null
@@ -1,45 +0,0 @@
-.p3x-gitlist-light {
- .blame-view {
-
- td.blame-info {
- }
- td.blame-line {
- pre {
- overflow-x: auto;
- white-space:pre-wrap;
- }
- }
- tr {
- }
- tr:last-child {
- }
- .line {
- }
- .commit {
- }
- pre {
- }
- }
-}
-
-.p3x-gitlist-dark {
- .blame-view {
-
- td.blame-info {
- }
- td.blame-line {
-
- }
- tr {
- }
- tr:last-child {
- }
- .line {
- }
- .commit {
- }
- pre {
- }
- }
-}
-
diff --git a/public/less/branch-menu.less b/public/less/browser.less
similarity index 100%
rename from public/less/branch-menu.less
rename to public/less/browser.less
diff --git a/public/less/clone-modal.less b/public/less/clone-button.less
similarity index 100%
rename from public/less/clone-modal.less
rename to public/less/clone-button.less
diff --git a/public/less/default.less b/public/less/default.less
index 668e9638..038f03fc 100644
--- a/public/less/default.less
+++ b/public/less/default.less
@@ -24,44 +24,29 @@
}
}
+.p3x-gitlist-button {
+ .btn {
+ margin-bottom: @padding-base-vertical !important;
+ }
+}
.p3x-gitlist-dark {
#snackbar-container > div {
border: 1px solid @navbar-default-border;
}
- pre {
+ code {
overflow-x: auto;
white-space:pre-wrap;
}
- pre.p3x-gitlist-code {
+ code.p3x-gitlist-code {
background-color: lighten(@navbar-inverse-bg, 5%);
color: @navbar-inverse-color;
border-color: @navbar-inverse-border;
}
}
-
-.header {
- margin-bottom: @line-height-computed;
-}
-
-
-
-.space-right {
- padding: 0 8px 0 0;
-}
-
-.rss-icon {
- color: @brand-danger;
- font-size: @font-size-large;
-
- &:hover {
- color: darken(@brand-danger, 15%);
- }
-}
-
.p3x-gitlist-markdown-heading-container {
position: relative;
}
@@ -77,7 +62,7 @@ a.p3x-gitlist-markdown-heading-link {
}
.p3x-gitlist-breadcrumb-divider {
- min-height: 8px;
+ min-height: @padding-base-vertical;
display: block;
clear: both;;
}
@@ -89,30 +74,19 @@ img.emoji {
vertical-align: -0.1em;
}
-body {
- font-size: 10pt !important;
-}
-
.p3x-list-item-header {
font-weight: bold !important;
}
-.p3x-gitlist-twig-file-button-row {
- margin-bottom: 5px !important;
-}
-
@import "network.less";
-@import "clone-modal.less";
+@import "clone-button.less";
@import "footer";
-@import "repositories";
@import "main-tabs";
-@import "tree";
-@import "source-view";
+@import "treegraph";
+@import "file";
@import "commits";
@import "commit-list";
-@import "stats";
-@import "blame-view";
@import "markdown";
-@import "table";
-@import "branch-menu";
-@import "overlay";
\ No newline at end of file
+@import "browser";
+@import "overlay";
+@import "search";
\ No newline at end of file
diff --git a/public/less/source-view.less b/public/less/file.less
similarity index 96%
rename from public/less/source-view.less
rename to public/less/file.less
index d3e99866..7b292119 100644
--- a/public/less/source-view.less
+++ b/public/less/file.less
@@ -1,3 +1,9 @@
+#p3x-gitlist-file-codemirror-exceeded {
+ display: none;
+ margin-bottom: @padding-base-horizontal;
+}
+
+
.p3x-gitlist-light {
}
diff --git a/public/less/markdown.less b/public/less/markdown.less
index 7b31aeed..8b00e9f1 100644
--- a/public/less/markdown.less
+++ b/public/less/markdown.less
@@ -1,51 +1,17 @@
.p3x-gitlist-light {
@import (less) '../../node_modules/highlight.js/styles/github.css';
- .readme-view {
- border: 1px solid @navbar-default-border;
- }
-
- .md-header {
- padding: @padding-large-horizontal;
- background-color: @navbar-default-bg;
- color: @navbar-default-color;
- line-height: @line-height-base;
- border-bottom: 1px solid lighten(@navbar-default-border, 5%);
- font-weight: bold;
- }
}
.p3x-gitlist-dark {
- @import (less) '../../node_modules/highlight.js/styles/tomorrow-night.css';
-
- .readme-view {
- border: 1px solid @navbar-inverse-border;
- }
-
- .md-header {
- padding: @padding-large-horizontal;
- background-color: @navbar-inverse-bg;
- color: @navbar-inverse-color;
- line-height: @line-height-base;
- border-bottom: 1px solid lighten(@navbar-inverse-border, 5%);
- font-weight: bold;
- }
+ @import (less) '../../node_modules/highlight.js/styles/dracula.css';
}
-
-.md-view {
- width: 100%;
- margin-bottom: @line-height-base;
-}
-
-#md-content {
- padding: @padding-large-vertical @padding-large-horizontal;
-
+#p3x-gitlist-readme {
pre {
padding: 0;
-
}
-
}
+
diff --git a/public/less/repositories.less b/public/less/repositories.less
deleted file mode 100644
index 5e7df7d4..00000000
--- a/public/less/repositories.less
+++ /dev/null
@@ -1,70 +0,0 @@
-.p3x-gitlist-light {
- .repository {
- margin-bottom: @line-height-computed;
- border: 1px solid @navbar-default-border;
-
- .repository-header {
- border-bottom: 1px solid @navbar-default-border;
- padding: 10px;
- font-size: @font-size-base;
- font-weight: 700;
- background-color: @navbar-default-bg;
- color: @navbar-default-color;
-
- a{
- color: @navbar-default-color !important;
- }
-
- span.rss-icon {
- font-size: @font-size-h3;
- }
- > .fa {
- margin-right: 8px;
- }
- }
- .repository-body {
- padding: @padding-base-vertical @padding-base-horizontal;
-
- p {
- margin: 0;
- }
- }
- }
-}
-
-
-.p3x-gitlist-dark {
- .repository {
- margin-bottom: @line-height-computed;
- border: 1px solid @navbar-inverse-border;
-
- .repository-header {
- border-bottom: 1px solid @navbar-inverse-border;
- padding: 10px;
- font-size: @font-size-base;
- font-weight: 700;
- background-color: fade(@navbar-default-bg, 5%);
- color: lighten(@navbar-default-link-color, 25%) !important;
-
- a{
- color: lighten(@navbar-default-link-color, 25%) !important;
- }
-
- span.rss-icon {
- font-size: @font-size-h3;
- }
- > .fa {
- margin-right: 8px;
- }
- }
- .repository-body {
- padding: @padding-base-vertical @padding-base-horizontal;
-
- p {
- margin: 0;
- }
- }
- }
-
-}
-
diff --git a/public/less/search.less b/public/less/search.less
new file mode 100644
index 00000000..445cf80f
--- /dev/null
+++ b/public/less/search.less
@@ -0,0 +1,5 @@
+.p3x-gitlist-search-match {
+ overflow-x: auto;
+ white-space: pre;
+ margin: 0;
+}
diff --git a/public/less/stats.less b/public/less/stats.less
deleted file mode 100644
index 82c1781f..00000000
--- a/public/less/stats.less
+++ /dev/null
@@ -1,37 +0,0 @@
-
-.stats {
- border: 1px solid @navbar-default-border;
- border-radius: @border-radius-base;
-
- > thead > tr > th {
- background-color: @navbar-default-bg;
- color: @navbar-default-color;
- padding: 8px;
- line-height: @line-height-computed;;
- text-align: left;
- vertical-align: bottom;
- border-bottom: 1px solid @navbar-default-border;
- }
- tbody td {
- padding: 8px;
- line-height: @line-height-computed;
- text-align: left;
- vertical-align: top;
- border-bottom: 1px solid @gray-lighter;
-
- > .fa {
- margin-right: 8px;
- }
- }
- caption + thead tr:first-child th,
- caption + thead tr:first-child td,
- colgroup + thead tr:first-child th,
- colgroup + thead tr:first-child td,
- thead:first-child tr:first-child th,
- thead:first-child tr:first-child td {
- border-top: 0;
- }
- tbody tr:last-child td {
- border-bottom: 0;
- }
-}
diff --git a/public/less/table.less b/public/less/table.less
deleted file mode 100644
index 704daf27..00000000
--- a/public/less/table.less
+++ /dev/null
@@ -1,24 +0,0 @@
-.p3x-gitlist-light {
-
-}
-
-.p3x-gitlist-dark {
-
- .table.table {
-
- border-color: @navbar-inverse-bg;
-
- th {
- border-bottom-color: @navbar-inverse-bg;
- background-color: @navbar-inverse-bg;
- color: @navbar-inverse-color;
- }
-
- }
-}
-
-.table {
- a {
- text-decoration: none !important;
- }
-}
\ No newline at end of file
diff --git a/public/less/tree.less b/public/less/tree.less
deleted file mode 100644
index 0037af82..00000000
--- a/public/less/tree.less
+++ /dev/null
@@ -1,102 +0,0 @@
-
-.p3x-gitlist-light {
-
- .treegraph-button {
- display: inline-block;
- min-width: 80px;
- text-align: right;
- background-color: @navbar-default-bg;
- color: @navbar-default-color !important;
- padding-right: 2px;
- }
-
- .tree {
- border: 1px solid @navbar-default-border;
- border-radius: @border-radius-base;
-
- > thead > tr > th {
- background-color: @navbar-default-bg;
- color: @navbar-default-color;
- padding: 8px;
- line-height: @line-height-computed;;
- text-align: left;
- vertical-align: bottom;
- border-bottom: 1px solid @navbar-default-border;
- }
- tbody td {
- padding: 8px;
- line-height: @line-height-computed;
- text-align: left;
- vertical-align: top;
- border-bottom: 1px solid @gray-lighter;
-
- > .fa {
- margin-right: 8px;
- }
- }
- caption + thead tr:first-child th,
- caption + thead tr:first-child td,
- colgroup + thead tr:first-child th,
- colgroup + thead tr:first-child td,
- thead:first-child tr:first-child th,
- thead:first-child tr:first-child td {
- border-top: 0;
- }
- tbody tr:last-child td {
- border-bottom: 0;
- }
- }
-
-}
-
-.p3x-gitlist-dark {
-
-
- .treegraph-button {
- display: inline-block;
- min-width: 80px;
- text-align: right;
- background-color: @navbar-inverse-bg;
- color: @navbar-inverse-color !important;
- padding-right: 2px;
- }
-
- .tree {
- border: 1px solid @navbar-inverse-border;
- border-radius: @border-radius-base;
-
- > thead > tr > th {
- background-color: @navbar-inverse-bg;
- color: @navbar-inverse-color;
- padding: 8px;
- line-height: @line-height-computed;;
- text-align: left;
- vertical-align: bottom;
- border-bottom: 1px solid @navbar-inverse-border;
- }
- tbody td {
- padding: 8px;
- line-height: @line-height-computed;
- text-align: left;
- vertical-align: top;
- border-bottom: 1px solid @gray-lighter;
-
- > .fa {
- margin-right: 8px;
- }
- }
- caption + thead tr:first-child th,
- caption + thead tr:first-child td,
- colgroup + thead tr:first-child th,
- colgroup + thead tr:first-child td,
- thead:first-child tr:first-child th,
- thead:first-child tr:first-child td {
- border-top: 0;
- }
- tbody tr:last-child td {
- border-bottom: 0;
- }
- }
-
-
-}
diff --git a/public/less/treegraph.less b/public/less/treegraph.less
new file mode 100644
index 00000000..0b84d425
--- /dev/null
+++ b/public/less/treegraph.less
@@ -0,0 +1,28 @@
+
+.p3x-gitlist-light {
+
+ .treegraph-button {
+ display: inline-block;
+ min-width: 80px;
+ text-align: right;
+ background-color: @navbar-default-bg;
+ color: @navbar-default-color !important;
+ padding-right: 2px;
+ }
+
+
+}
+
+.p3x-gitlist-dark {
+
+
+ .treegraph-button {
+ display: inline-block;
+ min-width: 80px;
+ text-align: right;
+ background-color: @navbar-inverse-bg;
+ color: @navbar-inverse-color !important;
+ padding-right: 2px;
+ }
+
+}
diff --git a/src/css-postfix b/src/css-postfix
index 0ded61c8..2cbb5668 100644
--- a/src/css-postfix
+++ b/src/css-postfix
@@ -1 +1 @@
-62b2d402b0eeaedaea45512565bea851c64ac40debfc02c05f73e192f1e385b5
\ No newline at end of file
+78b1485abae4036cd37bb748ddac45156a449e81a8682e089e96526fa1d922fb
\ No newline at end of file
diff --git a/twig/blame.twig b/twig/blame.twig
index e15019ac..257698d3 100644
--- a/twig/blame.twig
+++ b/twig/blame.twig
@@ -5,21 +5,34 @@
{% block title %}P3X GitList{% endblock %}
{% block content %}
- {% include 'breadcrumb.twig' with {breadcrumbs: [{dir: 'Blame', path:''}]} %}
+ {% embed 'breadcrumb.twig' with {breadcrumbs: [{dir: 'Blame', path:''}, {dir: file, path:''}]} %}
+
+ {% block left %}
+ {% if blames %}
+
+ {% endif %}
+ {% endblock %}
+
+ {% endembed %}
+ {% if blames %}
- {{ blame.commitShort }} | -{{ blame.line }} |
-
{{ commit.body | nl2br }}
{% endif %} - + {{ commit.author.name }} authored on {{ commit.date | format_date }} {% if commit.author.email != commit.commiter.email %} @@ -56,9 +61,9 @@ {% for diff in commit.diffs %}