Show More
@@ -96,15 +96,6 b' def url(*args, **kw):' | |||||
96 | return pylons_url(*args, **kw) |
|
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 | def asset(path, ver=None, **kwargs): |
|
99 | def asset(path, ver=None, **kwargs): | |
109 | """ |
|
100 | """ | |
110 | Helper to generate a static asset file path for rhodecode assets |
|
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 | <a |
|
641 | <a | |
642 | class="btn ${c.diffmode == 'sideside' and 'btn-primary'} tooltip" |
|
642 | class="btn ${c.diffmode == 'sideside' and 'btn-primary'} tooltip" | |
643 | title="${h.tooltip(_('View side by side'))}" |
|
643 | title="${h.tooltip(_('View side by side'))}" | |
644 |
href="${h. |
|
644 | href="${h.current_route_path(request, diffmode='sideside')}"> | |
645 | <span>${_('Side by Side')}</span> |
|
645 | <span>${_('Side by Side')}</span> | |
646 | </a> |
|
646 | </a> | |
647 | <a |
|
647 | <a | |
648 | class="btn ${c.diffmode == 'unified' and 'btn-primary'} tooltip" |
|
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 | <span>${_('Unified')}</span> |
|
650 | <span>${_('Unified')}</span> | |
651 | </a> |
|
651 | </a> | |
652 | </div> |
|
652 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now