Switch to unified view

a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
...
...
201
                    troves.append(M.TroveCategory.query.get(trove_cat_id=trove_id)._id)
201
                    troves.append(M.TroveCategory.query.get(trove_cat_id=trove_id)._id)
202
        if 'home_options' in project_template:
202
        if 'home_options' in project_template:
203
            options = c.project.app_config('home').options
203
            options = c.project.app_config('home').options
204
            for option in project_template['home_options'].keys():
204
            for option in project_template['home_options'].keys():
205
                options[option] = project_template['home_options'][option]
205
                options[option] = project_template['home_options'][option]
206
        from forgewiki import model as WM
207
        home_app = c.project.app_instance('home')
206
        if 'home_text' in project_template:
208
        if 'home_text' in project_template:
207
            from forgewiki import model as WM
208
            app = c.project.app_instance('home')
209
            WM.Page.query.get(app_config_id=app.config._id).text = project_template['home_text']
209
            WM.Page.query.get(app_config_id=home_app.config._id).text = project_template['home_text']
210
        else:
211
            WM.Page.query.get(app_config_id=home_app.config._id).text = """[[project_admins]]
212
213
[[download_button]]"""
210
        if 'icon' in project_template:
214
        if 'icon' in project_template:
211
            icon_file = StringIO(urlopen(project_template['icon']['url']).read())
215
            icon_file = StringIO(urlopen(project_template['icon']['url']).read())
212
            M.ProjectFile.save_image(
216
            M.ProjectFile.save_image(
213
                project_template['icon']['filename'], icon_file,
217
                project_template['icon']['filename'], icon_file,
214
                square=True, thumbnail_size=(48,48),
218
                square=True, thumbnail_size=(48,48),