# HG changeset patch # User Marcin Kuzminski # Date 2017-11-07 12:38:01 # Node ID 99e0debec30d5a85588cf87cea1c9c101a0ee532 # Parent 2e6c5b76b7cb5c4d39604d8883aafb8c34c76471 routing: deprecate url_replace function in exchange of current_route_path which we now use in pyramid diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -96,15 +96,6 @@ def url(*args, **kw): return pylons_url(*args, **kw) -def url_replace(**qargs): - """ Returns the current request url while replacing query string args """ - - request = get_current_request() - new_args = request.GET.mixed() - new_args.update(qargs) - return url('', **new_args) - - def asset(path, ver=None, **kwargs): """ Helper to generate a static asset file path for rhodecode assets diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -641,12 +641,12 @@ from rhodecode.lib.diffs import NEW_FILE + href="${h.current_route_path(request, diffmode='sideside')}"> ${_('Side by Side')} + title="${h.tooltip(_('View unified'))}" href="${h.current_route_path(request, diffmode='unified')}"> ${_('Unified')}