'Render export links for the report
@param r: the S3Request'

@staticmethod
def export_links(r):

    T = current.T
    formats = DIV(DIV(_title=T('Export    as    PDF'), _class='gi-export    export_pdf', data={'url': r.url(method='grouped', representation='pdf', vars=r.get_vars)}), DIV(_title=T('Export    as    XLS'), _class='gi-export    export_xls', data={'url': r.url(method='grouped', representation='xls', vars=r.get_vars)}), _class='gi-export-formats')
    return formats
