diff --git a/contextualise.py b/contextualise.py index 9fbd14a..9b48d2b 100644 --- a/contextualise.py +++ b/contextualise.py @@ -53,7 +53,6 @@ for path, subdirs, files in os.walk(path): # print(listofdicts[0]["name"]) #test - dict = {} #dict for the form entries @app.route("/") @@ -80,7 +79,7 @@ def description(): # assigning html tag on the basis of extension, to be finished when all the files have been sent if thefile.lower().endswith(('.png', '.jpg', '.jpeg')): - thefile = Markup('') + thefile = Markup('
') #if sound elif thefile.lower().endswith(('.mp3')): @@ -95,10 +94,10 @@ def description(): Your browser does not support the video tag. ''') - # return render_template('description.html', form=form, file=thefile, listingdirectories=listingdirectories, listingfiles=listingfiles) + return render_template('description.html', file=thefile) if __name__ == '__main__': - app.run(debug=True) + app.run(debug=True) \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index c6cc167..8d5358d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,4 +1,8 @@ body{ background: lavender; color:blue; +} + +img{ + max-width: 500px; } \ No newline at end of file