diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 66ab721..8153dc7 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -304,8 +304,15 @@ header h1 span { .code_table tr .cell1{ width: 20px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } +.code_table tr .cell1 a::before { + content: attr(data-line-number); +} .git_links { padding-top: 3em; diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index d10a9a6..391aa7e 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -83,7 +83,7 @@ def format_loc(loc, commit=None, filename=None, prequest=None, index=None): if filename and commit: output.append( '
' @@ -102,7 +102,7 @@ def format_loc(loc, commit=None, filename=None, prequest=None, index=None): else: output.append( '
bar
barRow 0