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 55b1619..b1b2fa4 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 39bbd4e..488f850 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 +=