Commit 10d881c9 authored by Riyad Preukschas's avatar Riyad Preukschas Committed by Dmitriy Zaporozhets

Line anchors for file view

parent 62219aa3
...@@ -157,12 +157,17 @@ ...@@ -157,12 +157,17 @@
font-size:12px !important; font-size:12px !important;
} }
table.highlighttable .linenodiv pre { table.highlighttable .linenodiv {
a {
color: #666;
}
pre {
text-align: right; text-align: right;
padding-right: 4px; padding-right: 4px;
color:#666; color:#666;
} }
} }
} }
}
} }
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
- unless blob.empty? - unless blob.empty?
%div{class: current_user.dark_scheme ? "black" : "white"} %div{class: current_user.dark_scheme ? "black" : "white"}
= preserve do = preserve do
= raw blob.colorize(options: { linenos: 'True'}) = raw blob.colorize(options: { linenos: true, lineanchors: :line, anchorlinenos: true })
- else - else
%h4.nothing_here_message Empty file %h4.nothing_here_message Empty file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment