def postp(r, output):
    if r.interactive:
        if (not r.component):
            s3.actions = [dict(label=str(T('Solutions')), _class='action-btn', url=URL(args=['[id]', 'solution'])), dict(label=str(T('Vote')), _class='action-btn', url=URL(args=['[id]', 'vote']))]
        elif (r.component_name == 'solution'):
            s3.actions = [dict(label=str(T('Discuss')), _class='action-btn', url=URL(args=[r.id, 'solution', '[id]', 'discuss']))]
    return output
def postp(r, output):
    if r.interactive:
        if (not r.component):
            s3.actions = [dict(label=str(T('Solutions')), _class='action-btn', url=URL(args=['[id]', 'solution'])), dict(label=str(T('Vote')), _class='action-btn', url=URL(args=['[id]', 'vote']))]
        elif (r.component_name == 'solution'):
            s3.actions = [dict(label=str(T('Discuss')), _class='action-btn', url=URL(args=[r.id, 'solution', '[id]', 'discuss']))]
    return output