diff --git a/swh/web/ui/templates/search.html b/swh/web/ui/templates/search.html
--- a/swh/web/ui/templates/search.html
+++ b/swh/web/ui/templates/search.html
@@ -99,7 +99,7 @@
From text input |
{% endif %}
{% if res['found'] %}
- {{ res['sha1'] }} |
+ {{ res['sha1'] }} |
|
{% else %}
{{ res['sha1'] }} |
diff --git a/swh/web/ui/views/browse.py b/swh/web/ui/views/browse.py
--- a/swh/web/ui/views/browse.py
+++ b/swh/web/ui/views/browse.py
@@ -38,7 +38,6 @@
TODO:
Batch-process with all checksums, not just sha1
"""
-
env = {'search_res': None,
'search_stats': None,
'message': []}
@@ -74,7 +73,6 @@
return render_template('search.html', **env)
-@app.route('/browse/content/')
@app.route('/browse/content//')
@set_renderers(HTMLRenderer)
def browse_content(q):
@@ -192,7 +190,6 @@
return render_template('content-with-origin.html', **env)
-@app.route('/browse/directory/')
@app.route('/browse/directory//')
@app.route('/browse/directory///')
@set_renderers(HTMLRenderer)
@@ -239,7 +236,6 @@
return render_template('directory.html', **env)
-@app.route('/browse/origin/')
@app.route('/browse/origin//')
@set_renderers(HTMLRenderer)
def browse_origin(origin_id):
@@ -263,7 +259,6 @@
return render_template('origin.html', **env)
-@app.route('/browse/person/')
@app.route('/browse/person//')
@set_renderers(HTMLRenderer)
def browse_person(person_id):
@@ -282,7 +277,6 @@
return render_template('person.html', **env)
-@app.route('/browse/release/')
@app.route('/browse/release//')
@set_renderers(HTMLRenderer)
def browse_release(sha1_git):
@@ -302,7 +296,6 @@
return render_template('release.html', **env)
-@app.route('/browse/revision/')
@app.route('/browse/revision//')
@app.route('/browse/revision//prev//')
@set_renderers(HTMLRenderer)
@@ -323,7 +316,6 @@
Example:
GET /browse/revision/
"""
-
env = {'sha1_git': sha1_git,
'message': None,
'revision': None}
@@ -333,7 +325,6 @@
env['revision'] = utils.prepare_data_for_view(rev)
except (NotFoundExc, BadInputExc) as e:
env['message'] = str(e)
-
return render_template('revision.html', **env)
@@ -377,8 +368,6 @@
@app.route('/browse/revision'
- '/origin/log/')
-@app.route('/browse/revision'
'/origin//log/')
@app.route('/browse/revision'
'/origin/'