Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
c3c30324
Commit
c3c30324
authored
Aug 19, 2012
by
Baptiste Mouterde
Committed by
ikoalaz
Aug 19, 2012
Browse files
source_browser : fix lines number
parent
332919b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/templates/source_viewer/contentviewer.mako
View file @
c3c30324
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<
tr
>
<
tr
>
<
td
class
=
"lines"
>
<
td
class
=
"lines"
>
%
for
j
,
i
in
enumerate
(
c
.
viewerContent
):
%
for
j
,
i
in
enumerate
(
c
.
viewerContent
):
<
pre
id
=
"L${j}L"
><
a
href
=
"#L${j}S"
>${
j
}</
a
></
pre
>
<
pre
id
=
"L${j
+1
}L"
><
a
href
=
"#L${j
+1
}S"
>${
j
+
1
}</
a
></
pre
>
%
endfor
%
endfor
</
td
>
</
td
>
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
<
td
>
<
td
>
<
div
class
=
'lines'
>
<
div
class
=
'lines'
>
%
for
j
,
i
in
enumerate
(
c
.
contentMode
):
%
for
j
,
i
in
enumerate
(
c
.
contentMode
):
<
pre
id
=
'L${j}S'
>${
i
}<
br
/></
pre
>
<
pre
id
=
'L${j
+1
}S'
>${
i
}<
br
/></
pre
>
%
endfor
%
endfor
</
div
>
</
div
>
</
td
>
</
td
>
...
@@ -149,13 +149,13 @@
...
@@ -149,13 +149,13 @@
<
div
id
=
"codeBrowser"
>
<
div
id
=
"codeBrowser"
>
%
for
j
,
i
in
enumerate
(
c
.
viewerContent
):
%
for
j
,
i
in
enumerate
(
c
.
viewerContent
):
%
if
i
==
''
:
%
if
i
==
''
:
<
pre
class
=
"code"
id
=
"L${j}S"
><
br
/></
pre
>
<
pre
class
=
"code"
id
=
"L${j
+1
}S"
><
br
/></
pre
>
%
else
:
%
else
:
%
if
c
.
type
==
"files"
:
%
if
c
.
type
==
"files"
:
<
pre
class
=
"code"
id
=
"L${j}S"
><
a
<
pre
class
=
"code"
id
=
"L${j
+1
}S"
><
a
href
=
"${h.url(controller='source_browser',action='index',packageName=c.packageName,revision=c.revision,fileName=i)}"
>${
i
}</
a
></
pre
>
href
=
"${h.url(controller='source_browser',action='index',packageName=c.packageName,revision=c.revision,fileName=i)}"
>${
i
}</
a
></
pre
>
%
else
:
%
else
:
<
pre
class
=
"code"
id
=
"L${j}S"
>${
i
|
n
}</
pre
>
<
pre
class
=
"code"
id
=
"L${j
+1
}S"
>${
i
|
n
}</
pre
>
%
endif
%
endif
%
endif
%
endif
%
endfor
%
endfor
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment