'Create the HTML for the System-wide \'Alert\' section'

@staticmethod
def _system_wide_html():

    ADMIN = current.auth.s3_has_role('ADMIN')
    table = current.s3db.cms_post
    record = current.db((table.name == 'SYSTEM_WIDE')).select(table.body, limitby=(0, 1)).first()
    if (record or ADMIN):
        if ADMIN:
            edit_btn = P(A(current.T('Edit    System-wide    Alert'), _href=URL(c='cms', f='post', args='update', vars={'page': 'SYSTEM_WIDE'}), _class='button    button-info'), _class='callout-right    text-right')
        else:
            edit_btn = ''
        content = ((record and record.body) or '')
        if content:
            content = XML(content)
        system_wide = DIV(DIV(DIV(P(content), _class='callout-left'), edit_btn, _role='complementary', _class='callout'), _class='row    well')
    else:
        system_wide = ''
    return system_wide
