Commit fae3ba8d authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat(deprecated/file): link to original file on branch/default when possible

parent 1954ec857c96
Pipeline #22538 passed with stages
in 5 minutes and 11 seconds
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
</head> </head>
<body> <body>
<h2>{{ file_name }}</h2> <h2>{{ file_name }}</h2>
{% if file_name in files_to_url %}<p><a href="{{ files_to_url[file_name] }}#L{{ lineno }}" target="_blank">file on branch/default</a></p>{% endif %}
{{ highlight_code(file_content, lineno, full_file=True) }} {{ highlight_code(file_content, lineno, full_file=True) }}
</body> </body>
</html> </html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment