Allow linking to file lines

Supported formats: "L12" for single lines and "L12-34" for multiple lines
This commit is contained in:
Riyad Preukschas 2012-11-10 00:03:46 +01:00
parent 45dcb1b5c4
commit c42ada9bee
5 changed files with 174 additions and 194 deletions

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, lineanchors: :line, anchorlinenos: true })
= raw blob.colorize(formatter: :gitlab)
- else
%h4.nothing_here_message Empty file