Exemple #1
0
def profile(user_hash):
    data = get_account(user_hash)
    if not data:
        abort(404)

    return render_template(
        'profil.html',
        profile=data
    )
def workshop_detail(workshop_hash):
    workshop = get_workshop(workshop_hash)
    if not workshop:
        abort(404)

    author = get_account(workshop['user'])

    return render_template('workshop_detail.html',
                           workshop=workshop,
                           author=author)
Exemple #3
0
def profile(user_hash):
    data = get_account(user_hash)
    if not data:
        abort(404)

    return render_template(
        'profil.html',
        user=check_auth(),
        menu=menu(),
        profile=data
    )
Exemple #4
0
def talk_detail(talk_hash):
    talk = get_talk(talk_hash)
    if not talk:
        abort(404)

    author = get_account(talk['user'])

    return render_template('talk_detail.html',
                           talk=talk,
                           author=author,
                           user=check_auth())
Exemple #5
0
def talk_detail(talk_hash):
    talk = get_talk(talk_hash)
    if not talk:
        abort(404)

    author = get_account(talk['user'])

    return render_template(
        'talk_detail.html',
        talk=talk,
        author=author,
        user=check_auth())
Exemple #6
0
def workshop_detail(workshop_hash):
    workshop = get_workshop(workshop_hash)
    if not workshop:
        abort(404)

    author = get_account(workshop['user'])

    return render_template(
        'workshop_detail.html',
        workshop=workshop,
        author=author
    )
Exemple #7
0
def talk_detail(talk_hash):
    talk = get_talk(talk_hash)
    if not talk:
        abort(404)

    author = get_account(talk['user'])

    user = check_auth()
    user_hash = None

    if user:
        user_hash = user['user_hash']

    return render_template('talk_detail.html',
                           talk=talk,
                           user_votes=get_user_votes(user_hash),
                           author=author)
Exemple #8
0
def talk_detail(talk_hash):
    talk = get_talk(talk_hash)
    if not talk:
        abort(404)

    author = get_account(talk['user'])

    user = check_auth()
    user_hash = None

    if user:
        user_hash = user['user_hash']

    return render_template(
        'talk_detail.html',
        talk=talk,
        user_votes=get_user_votes(user_hash),
        author=author
    )
Exemple #9
0
def profile(user_hash):
    data = get_account(user_hash)
    if not data:
        abort(404)

    return render_template('profil.html', profile=data)