diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_file.html | 5 | ||||
-rw-r--r-- | templates/repo_folder.html | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo_file.html b/templates/repo_file.html index e01d02c..796846e 100644 --- a/templates/repo_file.html +++ b/templates/repo_file.html @@ -9,9 +9,8 @@ </head> <body> <h1><a href="/">gityeet</a></h1> +<h2><a href="/{{ repo_path }}/">{{ repo_path }}</a></h2> <p>{{ rel_path }}</p> -<pre> -{{ blob.content()|from_utf8_lossy }} -</pre> +{{ blob.content()|from_utf8_lossy|highlight(rel_path)|safe }} </body> </html> diff --git a/templates/repo_folder.html b/templates/repo_folder.html index 6f6b3a9..81f455f 100644 --- a/templates/repo_folder.html +++ b/templates/repo_folder.html @@ -9,6 +9,7 @@ </head> <body> <h1><a href="/">gityeet</a></h1> +<h2><a href="/{{ repo_path }}/">{{ repo_path }}</a></h2> <p>{{ rel_path }}</p> {%- macro effective_name(entry) -%} {{- entry.name().unwrap() -}} |