Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre-Yves David
swh-web
Commits
fa67f1f6
Commit
fa67f1f6
authored
7 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
browse: Use a white background when displaying contents
parent
30a75f13
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swh/web/static/css/style.css
+6
-0
6 additions, 0 deletions
swh/web/static/css/style.css
swh/web/templates/content.html
+7
-7
7 additions, 7 deletions
swh/web/templates/content.html
with
13 additions
and
7 deletions
swh/web/static/css/style.css
+
6
−
0
View file @
fa67f1f6
...
...
@@ -502,4 +502,10 @@ fieldset[disabled] .btn-swh.active {
.pager
a
{
outline
:
none
;
}
.swh-content
{
background-image
:
none
;
border
:
none
;
background-color
:
white
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
swh/web/templates/content.html
+
7
−
7
View file @
fa67f1f6
...
...
@@ -25,7 +25,7 @@
return
line_td
;
}
function
remove
H
ash
()
{
function
remove
_h
ash
()
{
history
.
pushState
(
""
,
document
.
title
,
window
.
location
.
pathname
+
window
.
location
.
search
);
}
...
...
@@ -35,7 +35,7 @@
$
(
'
tr
'
).
css
(
'
background-color
'
,
'
inherit
'
);
}
function
scroll
ToL
ine
(
lineDomElt
)
{
function
scroll
_to_l
ine
(
lineDomElt
)
{
$
(
'
html, body
'
).
animate
({
scrollTop
:
$
(
lineDomElt
).
offset
().
top
-
70
},
500
);
...
...
@@ -54,10 +54,10 @@
reset_highlighted_lines
();
if
(
lines
.
length
==
1
)
{
first_hl_line
=
parseInt
(
lines
[
0
]);
scroll
ToL
ine
(
highlight_line
(
lines
[
0
]));
scroll
_to_l
ine
(
highlight_line
(
lines
[
0
]));
}
else
if
(
lines
[
0
]
<
lines
[
lines
.
length
-
1
])
{
first_hl_line
=
parseInt
(
lines
[
0
]);
scroll
ToL
ine
(
highlight_line
(
lines
[
0
]));
scroll
_to_l
ine
(
highlight_line
(
lines
[
0
]));
for
(
var
i
=
lines
[
0
]
+
1
;
i
<=
lines
[
lines
.
length
-
1
];
++
i
)
{
highlight_line
(
i
);
}
...
...
@@ -88,11 +88,11 @@
reset_highlighted_lines
();
highlight_line
(
line
);
window
.
location
.
hash
=
'
#L
'
+
line
;
scroll
ToL
ine
(
evt
.
target
);
scroll
_to_l
ine
(
evt
.
target
);
}
}
else
{
reset_highlighted_lines
();
remove
H
ash
();
remove
_h
ash
();
}
});
...
...
@@ -114,7 +114,7 @@
{% include "includes/top-navigation.html" %}
<div
class=
"well well-sm"
style=
"margin-bottom: 0px"
>
<div
class=
"well well-sm
swh-content
"
style=
"margin-bottom: 0px"
>
{% if "inode/x-empty" == mimetype %}
<i>
File is empty
</i>
{% elif "text/" in mimetype %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment