示例#1
0
def profile(user_id):
    # current_user is the login-in user, check whether the current user want to view his own profile.
    current_user = Context.from_object(
        __get_api(API_USER, {"token": session.get("token")}))
    searched_user = Context.from_object(
        __get_api(API_USER, params={"user_id": user_id}))
    if "id" in current_user and "id" in searched_user and current_user.id == searched_user.id:
        return redirect("/user/profile")
    return render("/user/profile.html")
示例#2
0
def try_template(template_id):
    return render("/manage/testtemplate.html")
示例#3
0
def template_edit():
    return render("/template/create.html")
示例#4
0
def template_create_from_existing(template_id):
    return render("/template/create.html", template_id=template_id)
示例#5
0
def template_index():
    return render("/template/index.html")
示例#6
0
def user_hackathon_list():
    return render("/user/team.html")
示例#7
0
def user_profile_edit():
    return render("/user/profile_edit.html")
示例#8
0
def user_profile():
    return render("/user/profile.html")
示例#9
0
def user_team_hackathon(hackathon_name):
    return render("/team/team.html", hackathon_name=hackathon_name)
示例#10
0
def team_list():
    return render("/team/index.html")
示例#11
0
def manageddas(path):
    return render("/base/manage.html")
示例#12
0
def myhackathon2():
    return render("/base/manage.html")
示例#13
0
def create_event():
    return render("/create_event.html", islocal=is_local())