new detail pages

This commit is contained in:
James Turk 2023-06-05 21:53:09 -05:00
parent dacf3c18ca
commit 4cd716175b
2 changed files with 11 additions and 2 deletions

View File

@ -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
1 id first last position status hired
39 6 Samantha Lopez Network Security Current 8/15/1984
40 7 Nick Wiger Food Services Current 11/3/1986
41 8 Mike Mitchell Food Services Current 8/15/1984
42 9 Yusong Liu Audio Producer Terminated 6/8/1949 6/8/1999
43 1 Emma Erdbrink Audio Producer Current 10/31/1938 10/31/2000
44 99 Fatima Hassan CEO Current 8/12/1948
45 100 Sasha Johnson Product Manager Current 10/4/1985
46 101 Oscar Ego Outreach Coordinator Current 10/31/1938

View File

@ -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,