summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-07 13:31:26 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-11-07 13:31:26 +0200
commit10d881c9cad92169a3105cff0f02601dad4448cf (patch)
treeb2170d654f0365030703a77a36202035872c9d12
parent62219aa34a9c154480555d6efeab44afca169290 (diff)
downloadgitlab-ce-10d881c9cad92169a3105cff0f02601dad4448cf.tar.gz
Line anchors for file view
-rw-r--r--app/assets/stylesheets/gitlab_bootstrap/files.scss13
-rw-r--r--app/views/tree/blob/_text.html.haml2
2 files changed, 10 insertions, 5 deletions
diff --git a/app/assets/stylesheets/gitlab_bootstrap/files.scss b/app/assets/stylesheets/gitlab_bootstrap/files.scss
index cbc58d22203..580b74238ab 100644
--- a/app/assets/stylesheets/gitlab_bootstrap/files.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap/files.scss
@@ -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;
+ }
}
}
}
diff --git a/app/views/tree/blob/_text.html.haml b/app/views/tree/blob/_text.html.haml
index c506a39f338..3b7f293a35c 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'})
+ = raw blob.colorize(options: { linenos: true, lineanchors: :line, anchorlinenos: true })
- else
%h4.nothing_here_message Empty file