Reply/ReplyAll/Delete buttons are pretty now
authorArt Cancro <ajc@citadel.org>
Sat, 6 Nov 2021 20:05:13 +0000 (16:05 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 6 Nov 2021 20:05:13 +0000 (16:05 -0400)
webcit-ng/static/css/webcit.css
webcit-ng/static/js/views.js

index 55b161906f312160ceee3bd2efed70fef650689b..b1b2fa461f6deacae4f60c8e5b843add83d6073b 100644 (file)
@@ -45,12 +45,14 @@ html,body,h1,h2,h3,h4,h5 {
        background-color: GhostWhite;
        border-style: solid;
        border-width: thin;
+       border-color: black;
 }
 
 .ctdl-msg-button:hover {
-       background-color: black;
+       background-color: #123456;
        color: GhostWhite;
-       border-style: none;
+       transition: .3s;
+       border-color: #123456;
 }
 
 .ctdl-msg-button a {
index 39bbd4eed995658d3b1936e01324a69cf027f125..488f850fd761d0c5b92fb14ed8a25a64d9bfdbeb 100644 (file)
@@ -176,12 +176,22 @@ function forum_render_one(div, msgnum, scroll_to) {
                        + "</span>"                                                     // end msgdate
                        + "</span>"                                                     // end header info on left side
                        + "<span class=\"ctdl-msg-header-buttons\">"                    // begin buttons on right side
-                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">"
-                       + "<i class=\"fa fa-reply\" aria-hidden=\"true\"></i> " 
+
+                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">"              // Reply button
+                       + "<i class=\"fa fa-reply\"></i> " 
                        + _("Reply")
                        + "</a></span>"
-                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">Delete</a></span>"
-                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">Flame</a></span>"
+
+                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">"              // ReplyQuoted , only show in forums
+                       + "<i class=\"fa fa-reply\"></i> " 
+                       + _("ReplyQuoted")
+                       + "</a></span>"
+
+                       + "<span class=\"ctdl-msg-button\"><a href=\"#\">"              // Delete , show only with permission
+                       + "<i class=\"fa fa-trash\"></i> " 
+                       + _("Delete")
+                       + "</a></span>"
+
                        + "</span>";                                                    // end buttons on right side
                        if (msg.subj) {
                                outmsg +=