Bläddra i källkod

Add (un)confirmed email indication style

Visman 3 år sedan
förälder
incheckning
efba9261fe
2 ändrade filer med 15 tillägg och 1 borttagningar
  1. 1 1
      app/Models/Pages/Profile/View.php
  2. 14 0
      public/style/ForkBB/style.css

+ 1 - 1
app/Models/Pages/Profile/View.php

@@ -346,7 +346,7 @@ class View extends Profile
         }
         if ($this->rules->viewOEmail) {
             $fields['open-email'] = [
-                'class'   => ['pline'],
+                'class'   => $this->curUser->email_confirmed ? ['pline', 'confirmed'] : ['pline', 'unconfirmed'],
                 'type'    => 2 === $this->curUser->email_setting ? 'str' : 'link',
                 'caption' => 'Email info',
                 'value'   => $this->curUser->censorEmail,

+ 14 - 0
public/style/ForkBB/style.css

@@ -2298,6 +2298,20 @@ body,
   background-color: #FFBABA;
 }
 
+#fork .f-field-confirmed #id-open-email::after {
+  font: 900 0.875rem "FontAwesomeFree";
+  content: "\f00c";
+  color: green;
+  padding: 0 0.25rem;
+}
+
+#fork .f-field-unconfirmed #id-open-email::after {
+  font: 900 0.875rem "FontAwesomeFree";
+  content: "\f128";
+  color: red;
+  padding: 0 0.25rem;
+}
+
 @media screen and (min-width: 40rem) {
   #fork .f-fs-header .f-wrap-usertitle {
     order: 1;