new detail pages
This commit is contained in:
parent
dacf3c18ca
commit
4cd716175b
@ -39,8 +39,8 @@ id,first,last,position,status,hired
|
|||||||
6,Samantha,Lopez,Network Security,Current,8/15/1984
|
6,Samantha,Lopez,Network Security,Current,8/15/1984
|
||||||
7,Nick,Wiger,Food Services,Current,11/3/1986
|
7,Nick,Wiger,Food Services,Current,11/3/1986
|
||||||
8,Mike,Mitchell,Food Services,Current,8/15/1984
|
8,Mike,Mitchell,Food Services,Current,8/15/1984
|
||||||
9,Yusong,Liu,Audio Producer,Terminated,6/8/1949
|
9,Yusong,Liu,Audio Producer,Terminated,6/8/1999
|
||||||
1,Emma,Erdbrink,Audio Producer,Current,10/31/1938
|
1,Emma,Erdbrink,Audio Producer,Current,10/31/2000
|
||||||
99,Fatima,Hassan,CEO,Current,8/12/1948
|
99,Fatima,Hassan,CEO,Current,8/12/1948
|
||||||
100,Sasha,Johnson,Product Manager,Current,10/4/1985
|
100,Sasha,Johnson,Product Manager,Current,10/4/1985
|
||||||
101,Oscar,Ego,Outreach Coordinator,Current,10/31/1938
|
101,Oscar,Ego,Outreach Coordinator,Current,10/31/1938
|
|
@ -98,6 +98,15 @@ def staff():
|
|||||||
|
|
||||||
@app.route("/staff/<id_>")
|
@app.route("/staff/<id_>")
|
||||||
def staff_detail(id_):
|
def staff_detail(id_):
|
||||||
|
# check style parameter
|
||||||
|
style = request.args.get("style", "")
|
||||||
|
if style == "new":
|
||||||
|
template = "staff_detail_new.html"
|
||||||
|
elif style == "experimental":
|
||||||
|
template = "staff_detail_experimental.html"
|
||||||
|
else:
|
||||||
|
template = "staff_detail.html"
|
||||||
|
|
||||||
if id_ == "404":
|
if id_ == "404":
|
||||||
abort(
|
abort(
|
||||||
404,
|
404,
|
||||||
|
Loading…
Reference in New Issue
Block a user