Line anchors for file view

This commit is contained in:
Riyad Preukschas 2012-11-07 13:31:26 +02:00 committed by Dmitriy Zaporozhets
parent 62219aa34a
commit 10d881c9ca
2 changed files with 10 additions and 5 deletions

View file

@ -157,10 +157,15 @@
font-size:12px !important;
}
table.highlighttable .linenodiv pre {
text-align: right;
padding-right: 4px;
color:#666;
table.highlighttable .linenodiv {
a {
color: #666;
}
pre {
text-align: right;
padding-right: 4px;
color:#666;
}
}
}
}

View file

@ -10,6 +10,6 @@
- unless blob.empty?
%div{class: current_user.dark_scheme ? "black" : "white"}
= preserve do
= raw blob.colorize(options: { linenos: 'True'})
= raw blob.colorize(options: { linenos: true, lineanchors: :line, anchorlinenos: true })
- else
%h4.nothing_here_message Empty file