def sync_rheader(r, tabs=[]):

    if r.representation == "html":
        if r.tablename == "sync_repository":
            T = current.T
            repository = r.record
            if r.component and r.component_name=="log" and not r.component_id:
                purge_log = A(T("Remove all log entries"),
                              _href=r.url(method="delete"))
            else:
                purge_log = ""
            if repository:
                if repository.url or \
                   repository.apitype == "filesync" and repository.path:
                    tabs.append((T("Manual Synchronization"), "now"))
                rheader_tabs = s3_rheader_tabs(r, tabs)
                rheader = DIV(TABLE(
                    TR(TH("%s: " % T("Name")),
                       repository.name,
                       TH(""),
                       purge_log),
                    TR(TH("URL: "),
                       repository.url,
                       TH(""),
                       ""),
                    ), rheader_tabs)
                return rheader
    return None

# =============================================================================
Returns the compact records for all teams in the organization visible to
dataset/ETHPy150Open sahana/eden/modules/s3db/sync.py/sync_rheader--crossover with--dataset/ETHPy150Open Asana/python-asana/asana/resources/gen/teams.py/_Teams.find_by_organization