Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
10d881c9
Commit
10d881c9
authored
Nov 07, 2012
by
Riyad Preukschas
Committed by
Dmitriy Zaporozhets
Nov 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Line anchors for file view
parent
62219aa3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
app/assets/stylesheets/gitlab_bootstrap/files.scss
app/assets/stylesheets/gitlab_bootstrap/files.scss
+9
-4
app/views/tree/blob/_text.html.haml
app/views/tree/blob/_text.html.haml
+1
-1
No files found.
app/assets/stylesheets/gitlab_bootstrap/files.scss
View file @
10d881c9
...
@@ -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
;
}
}
}
}
}
}
}
}
}
app/views/tree/blob/_text.html.haml
View file @
10d881c9
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment