From b834eb18daaf3650100deedd88254a368676c1e1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 15 2016 10:16:39 +0000 Subject: Add all the missing repo: converter in the routes --- diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index 39ef359..f91cf6c 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -473,7 +473,7 @@ def view_file(repo, identifier, filename, username=None): @APP.route('//raw//f/') @APP.route('/fork///raw/', defaults={'filename': None}) -@APP.route('/fork///raw//f/') +@APP.route('/fork///raw//f/') def view_raw_file(repo, identifier, filename=None, username=None): """ Displays the raw content of a file of a commit for the specified repo. """ @@ -578,8 +578,8 @@ if APP.config.get('OLD_VIEW_COMMIT_ENABLED', False): @APP.route('//c//') @APP.route('//c/') -@APP.route('/fork///c//') -@APP.route('/fork///c/') +@APP.route('/fork///c//') +@APP.route('/fork///c/') def view_commit(repo, commitid, username=None): """ Render a commit in a repo """ @@ -940,8 +940,8 @@ def update_project(repo, username=None): 'view_settings', username=username, repo=repo.name)) -@APP.route('//update/priorities', methods=['POST']) -@APP.route('/fork///update/priorities', methods=['POST']) +@APP.route('//update/priorities', methods=['POST']) +@APP.route('/fork///update/priorities', methods=['POST']) @login_required def update_priorities(repo, username=None): """ Update the priorities of a project. @@ -1654,8 +1654,8 @@ def view_docs(repo, username=None, filename=None): select='docs', ) -@APP.route('//activity/') -@APP.route('//activity') +@APP.route('//activity/') +@APP.route('//activity') def view_project_activity(repo): """ Display the activity feed """