Switch to unified view

a/Allura/allura/app.py b/Allura/allura/app.py
...
...
117
    AttachmentClass = model.DiscussionAttachment
117
    AttachmentClass = model.DiscussionAttachment
118
    tool_label='Tool'
118
    tool_label='Tool'
119
    default_mount_label='Tool Name'
119
    default_mount_label='Tool Name'
120
    default_mount_point='tool'
120
    default_mount_point='tool'
121
    ordinal=0
121
    ordinal=0
122
    icons={}
122
123
123
    def __init__(self, project, app_config_object):
124
    def __init__(self, project, app_config_object):
124
        self.project = project
125
        self.project = project
125
        self.config = app_config_object # pragma: no cover
126
        self.config = app_config_object # pragma: no cover
126
        self.admin = DefaultAdminController(self)
127
        self.admin = DefaultAdminController(self)
127
        self.url = self.config.url()
128
        self.url = self.config.url()
128
129
129
    @classmethod
130
    @classmethod
130
    def status_int(self):
131
    def status_int(self):
131
        return self.status_map.index(self.status)
132
        return self.status_map.index(self.status)
133
134
    @classmethod
135
    def icon_url(self, size):
136
        resource = self.icons.get(size)
137
        if resource:
138
            return g.forge_static(resource)
139
        return ''
132
140
133
    def has_access(self, user, topic):
141
    def has_access(self, user, topic):
134
        '''Whether the user has access to send email to the given topic'''
142
        '''Whether the user has access to send email to the given topic'''
135
        return False
143
        return False
136
144