예제 #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())