Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean up file browser

  • Loading branch information...
commit 1742d1237ff0a1c506112ab8e9bd2e80f73ff2da 1 parent 7212472
John Lindal authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  server/browse.js
  2. +3 −2 views/browse-file.hbs
View
1  server/browse.js
@@ -589,6 +589,7 @@ function showFile(res, argv, query)
{
res.render('browse-file.hbs',
{
+ title: argv.title,
type: mod_path.extname(query.file).substr(1),
content: data,
raw: '/browse?raw=true&file=' + query.file,
View
5 views/browse-file.hbs
@@ -18,7 +18,8 @@
<style type="text/css">
body { margin:0; }
- p.cmd { padding:5px 0 5px 10px; background-color:#EEEEEE; }
+ p.hd { padding:5px 10px; background-color:#EEEEEE; }
+ p.hd a { float:right; }
</style>
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
@@ -27,7 +28,7 @@
<body>
-<p class="cmd"><a href="{{raw}}">Plain</a></p>
+<p class="hd"><a href="{{raw}}">Plain</a>{{title}}</p>
<pre class="brush:{{type}}">
{{content}}
Please sign in to comment.
Something went wrong with that request. Please try again.