Switch to unified view

a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
...
...
537
    limit = max(int(limit), 1)
537
    limit = max(int(limit), 1)
538
    max_page = (total_count / limit) + (1 if total_count % limit else 0)
538
    max_page = (total_count / limit) + (1 if total_count % limit else 0)
539
    max_page = max(0, max_page - (1 if zero_based_pages else 0))
539
    max_page = max(0, max_page - (1 if zero_based_pages else 0))
540
    page = min(max(int(page), (0 if zero_based_pages else 1)), max_page)
540
    page = min(max(int(page), (0 if zero_based_pages else 1)), max_page)
541
    return limit, page
541
    return limit, page
542
543
def render_any_markup(name, text):
544
    if text == '':
545
        text = '<p><em>Empty File</em></p>'
546
    else:
547
        renderer = pylons.g.pypeline_markup.renderer(name)
548
        if renderer[1]:
549
            text = pylons.g.pypeline_markup.render(name,text)
550
        else:
551
            text = '<pre>%s</pre>' % text
552
    return text