From 19d5ac54d46d57a47ae789f40b4583d34e02a8cb Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 13 Jun 2024 10:53:30 +0530 Subject: [PATCH] movebuttons --- saythanks/core.py | 5 ++++- saythanks/templates/inbox.htm.j2 | 12 ++---------- saythanks/templates/share_note.htm.j2 | 5 ++++- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/saythanks/core.py b/saythanks/core.py index 8bf04f6a..1a6c0c73 100644 --- a/saythanks/core.py +++ b/saythanks/core.py @@ -232,7 +232,10 @@ def share_note(uuid): abort(404) note = storage.Note.fetch(uuid) - return render_template('share_note.htm.j2', note=note) + note_body = note.body + for i in ['
','

','

','

']: + note_body = note_body.replace(i,'') + return render_template('share_note.htm.j2', note=note,note_body=note_body) @app.route('/inbox/archive/note/', methods=['GET']) diff --git a/saythanks/templates/inbox.htm.j2 b/saythanks/templates/inbox.htm.j2 index f67df0a7..123bb5c6 100644 --- a/saythanks/templates/inbox.htm.j2 +++ b/saythanks/templates/inbox.htm.j2 @@ -79,7 +79,7 @@ - + @@ -88,15 +88,7 @@ {% for note in notes %} - - + diff --git a/saythanks/templates/share_note.htm.j2 b/saythanks/templates/share_note.htm.j2 index 77648eac..e4ac00a1 100644 --- a/saythanks/templates/share_note.htm.j2 +++ b/saythanks/templates/share_note.htm.j2 @@ -35,7 +35,10 @@

🝐

- + +

+ {# Have body auto-grow as users type. #}
Share URL  Message From Timestamp
- - -
- -
-
  {{ note.body }} — {{ note.byline }} {{ note.timestamp.strftime('%d-%h-%Y %H:%M:%S') }}