'Define the comment for the HRM Competency Rating widget'

@staticmethod
def competency_rating_comment():

    T = current.T
    s3 = current.response.s3
    if (current.request.controller == 'vol'):
        controller = 'vol'
    else:
        controller = 'hrm'
    if current.auth.s3_has_role(current.session.s3.system_roles.ADMIN):
        label_create = s3.crud_strings['hrm_competency_rating'].label_create
        comment = S3PopupLink(c=controller, f='competency_rating', vars={'child': 'competency_id'}, label=label_create, tooltip=T('Add    a    new    competency    rating    to    the    catalog.'))
    else:
        comment = DIV(_class='tooltip', _title=('%s|%s' % (T('Competency    Rating'), T('Level    of    competency    this    person    has    with    this    skill.'))))
    if current.deployment_settings.get_hrm_skill_types():
        script = ("$.filterOptionsS3({\n    'trigger':'skill_id',\n    'target':'competency_id',\n    'lookupResource':'competency',\n    'lookupURL':S3.Ap.concat('/%s/skill_competencies/'),\n    'msgNoRecords':'%s'\n})" % (controller, T('No    Ratings    for    Skill    Type')))
        comment = TAG[''](comment, S3ScriptItem(script=script))
    return comment
