summaryrefslogtreecommitdiff
path: root/app/views/tree
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-10 00:03:46 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-10 00:03:46 +0100
commitc42ada9bee6e95b6fd3ebdc55d4b269f7e18d9f6 (patch)
treefbc340bd503b5d670d58393bfeb05ff9dcbeaa26 /app/views/tree
parent45dcb1b5c4e765fa048492865d2664f52e0a11a9 (diff)
downloadgitlab-ce-c42ada9bee6e95b6fd3ebdc55d4b269f7e18d9f6.tar.gz
Allow linking to file lines
Supported formats: "L12" for single lines and "L12-34" for multiple lines
Diffstat (limited to 'app/views/tree')
-rw-r--r--app/views/tree/blob/_text.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tree/blob/_text.html.haml b/app/views/tree/blob/_text.html.haml
index 3b7f293a35c..9e0f4bc4bc1 100644
--- a/app/views/tree/blob/_text.html.haml
+++ b/app/views/tree/blob/_text.html.haml
@@ -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