Switch to unified view

a/Allura/allura/lib/macro.py b/Allura/allura/lib/macro.py
...
...
167
                total = total + 1
167
                total = total + 1
168
        response = '<p class="macro_projects_total">%s Projects</p>%s' % (total,response)
168
        response = '<p class="macro_projects_total">%s Projects</p>%s' % (total,response)
169
    return response
169
    return response
170
170
171
@macro()
171
@macro()
172
def project_screenshots():
173
    from allura.lib.widgets.project_list import ProjectScreenshots
174
    ps = ProjectScreenshots()
175
    g.resource_manager.register(ps)
176
    response = ps.display(project=c.project)
177
    return response
178
179
@macro()
172
def download_button(project=None, **kw):
180
def download_button(project=None, **kw):
173
    from allura import model as M
181
    from allura import model as M
174
    from allura.lib.widgets.macros import DownloadButton
182
    from allura.lib.widgets.macros import DownloadButton
175
    if project is None:
183
    if project is None:
176
        p = c.project
184
        p = c.project