From acd73bdf5f351445b4b66c28dd0e3a8883d4face Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Wed, 1 Apr 2015 21:30:26 -0400 Subject: Add edit comment feature This is handled in javascript. When clicking the edit link: 1. a form is shown to edit the RST source of the comment. 2. on submit, an AJAX POST request is sent to the new "comment" endpoint in the flask app. 3. the endpoint compiles the RST source, update the comment in the database and sends back formatted content to the client. 4. the client then updates the comment content and hides the form. --- static/main.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'static/main.css') diff --git a/static/main.css b/static/main.css index 5ae7b30..88598a7 100644 --- a/static/main.css +++ b/static/main.css @@ -13,6 +13,19 @@ font-size: 14px; } +.media-body .edit { + display: none; + margin-right: 1em; +} + +.media-body:hover .edit { + display: initial; +} + +.comment-source { + display: none; +} + article > header { margin-bottom: 2em; } @@ -44,4 +57,4 @@ p.kadoscope{ .media-left img{ width: 64px; -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2