Switch to unified view

a/Allura/allura/lib/macro.py b/Allura/allura/lib/macro.py
...
...
129
    from allura.lib.widgets.macros import BlogPosts
129
    from allura.lib.widgets.macros import BlogPosts
130
    app_config_ids = []
130
    app_config_ids = []
131
    for conf in c.project.app_configs:
131
    for conf in c.project.app_configs:
132
        if conf.tool_name.lower() == 'blog' and (mount_point is None or conf.options.mount_point==mount_point):
132
        if conf.tool_name.lower() == 'blog' and (mount_point is None or conf.options.mount_point==mount_point):
133
            app_config_ids.append(conf._id)
133
            app_config_ids.append(conf._id)
134
    posts = BM.BlogPost.query.find({'state':'published','app_config_id':{'$in':app_config_ids}})
134
    posts = BM.BlogPost.query.find({
135
        'app_config_id': {'$in': app_config_ids},
136
        'state':'published',
137
    })
135
    posts = posts.sort(sort, pymongo.DESCENDING).limit(int(max_number)).all()
138
    posts = posts.sort(sort, pymongo.DESCENDING).limit(int(max_number)).all()
136
    output = ((dict(
139
    output = ((dict(
137
                href=post.url(),
140
                href=post.url(),
138
                title=post.title,
141
                title=post.title,
139
                author=post.author().display_name,
142
                author=post.author().display_name,