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

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
synchronization resource headers .