Пример #1
0
def profile(user_hash):
    data = get_account(user_hash)
    if not data:
        abort(404)

    return render_template(
        'profil.html',
        profile=data
    )
Пример #2
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)
Пример #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
    )
Пример #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())
Пример #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())
Пример #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
    )
Пример #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)
Пример #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
    )
Пример #9
0
def profile(user_hash):
    data = get_account(user_hash)
    if not data:
        abort(404)

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