stany.ferer 1 рік тому
батько
коміт
2fa502498f
2 змінених файлів з 5 додано та 3 видалено
  1. 5 2
      core/class/document.class.php
  2. 0 1
      maj/sql/maj.sql

+ 5 - 2
core/class/document.class.php

@@ -495,16 +495,19 @@ class document
         if($tags != NULL){
             $badge = "";
             if($nb > 0){ 
-                $badge = '<span class="position-absolute start-100 translate-middle badge rounded-pill bg-danger">' . $nb . '</span>';
+                $badge = '<span class="position-absolute badge rounded-pill bg-danger" style="right:-10px; margin-top:-10px;">' . $nb . '</span>';
             }
             echo '<a href="/documents-my-assign.html" class="dropdown-item">Vos assignations' . $badge . '</a>';
         }
+        if(maj::compareHash() == FALSE AND access::ifAccesss("parametres")){
+            echo '<div class="dropdown-divider"></div><a href="/parametres.html#parametres-maj" class="dropdown-item" style="color:green;">Nouvelle version</a>';
+        }
     }
 
     static public function badge(){
         $tags = user::getIdTags(session::getId());
         $nb = document::myAssign($tags);
-        if($tags != NULL){
+        if($tags != NULL OR (maj::compareHash() == TRUE AND session::getType(1))){
             if($nb > 0){ 
                 echo '<span class="position-absolute start-100 translate-middle p-1 bg-danger border border-light rounded-circle"></span>';
             }

+ 0 - 1
maj/sql/maj.sql

@@ -1 +0,0 @@
-INSERT INTO `type_access` (`id`, `id_type`, `id_access`) VALUES ('', '4', '16');