Show More
@@ -96,15 +96,6 b' def url(*args, **kw):' | |||
|
96 | 96 | return pylons_url(*args, **kw) |
|
97 | 97 | |
|
98 | 98 | |
|
99 | def url_replace(**qargs): | |
|
100 | """ Returns the current request url while replacing query string args """ | |
|
101 | ||
|
102 | request = get_current_request() | |
|
103 | new_args = request.GET.mixed() | |
|
104 | new_args.update(qargs) | |
|
105 | return url('', **new_args) | |
|
106 | ||
|
107 | ||
|
108 | 99 | def asset(path, ver=None, **kwargs): |
|
109 | 100 | """ |
|
110 | 101 | Helper to generate a static asset file path for rhodecode assets |
@@ -641,12 +641,12 b' from rhodecode.lib.diffs import NEW_FILE' | |||
|
641 | 641 | <a |
|
642 | 642 | class="btn ${c.diffmode == 'sideside' and 'btn-primary'} tooltip" |
|
643 | 643 | title="${h.tooltip(_('View side by side'))}" |
|
644 |
href="${h. |
|
|
644 | href="${h.current_route_path(request, diffmode='sideside')}"> | |
|
645 | 645 | <span>${_('Side by Side')}</span> |
|
646 | 646 | </a> |
|
647 | 647 | <a |
|
648 | 648 | class="btn ${c.diffmode == 'unified' and 'btn-primary'} tooltip" |
|
649 |
title="${h.tooltip(_('View unified'))}" href="${h. |
|
|
649 | title="${h.tooltip(_('View unified'))}" href="${h.current_route_path(request, diffmode='unified')}"> | |
|
650 | 650 | <span>${_('Unified')}</span> |
|
651 | 651 | </a> |
|
652 | 652 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now