diff --git a/app.py b/app.py index b30cd51..cec076b 100644 --- a/app.py +++ b/app.py @@ -407,7 +407,6 @@ def create(): file.save(UPLOAD_DIRECTORY + str(upload.id) + '.' + ext) flash('Your message has been posted successfully') return redirect(url_for('user_detail', username=user.username)) - return render_template('create.html') @app.route('/notifications/') diff --git a/static/style.css b/static/style.css index 6ba4f04..5e7b4b9 100644 --- a/static/style.css +++ b/static/style.css @@ -8,3 +8,4 @@ body{margin:0} .header h1{margin:0;display:inline-block} .flash{background-color:#ff9;border:yellow 1px solid} .message-visual img{max-width:100%;max-height:8em} +.create_text{width:100%;height:8em} diff --git a/templates/create.html b/templates/create.html index 3c644f1..be1f5e1 100644 --- a/templates/create.html +++ b/templates/create.html @@ -4,8 +4,9 @@
diff --git a/templates/user_detail.html b/templates/user_detail.html index 6bf6e30..ac24f11 100644 --- a/templates/user_detail.html +++ b/templates/user_detail.html @@ -12,13 +12,14 @@ {% if user.username != current_user.username %} {% if current_user|is_following(user) %} {% else %} {% endif %} +Mention this user in a message
{% endif %} {% endif %}