Browse Source

cache les anciens projets

Hugo Roy 7 years ago
parent
commit
2806c97b75
3 changed files with 10 additions and 15 deletions
  1. 1 1
      style.css
  2. 7 1
      style.less
  3. 2 13
      templates/tpl-main-bottom.php

File diff suppressed because it is too large
+ 1 - 1
style.css


+ 7 - 1
style.less

@@ -13,7 +13,7 @@
     &.clos {.bg-warning;}	
     &.clos {.bg-warning;}	
 }
 }
 
 
-nav.projets {
+nav.projets.sidebar {
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     background: @violet;
     background: @violet;
@@ -30,6 +30,12 @@ nav.projets {
 	&.selectionné, &.selected {
 	&.selectionné, &.selected {
 	    background: @violet + #111;
 	    background: @violet + #111;
 	}
 	}
+    a.projet {
+    display: none;
+    }
+    a.projet:nth-last-child(1), a.projet:nth-last-child(2), a.projet:nth-last-child(3), a.projet:nth-last-child(4), a.projet:nth-last-child(5) {
+    display: block;
+    }
     }
     }
     .heading {
     .heading {
 	color: #ccc;
 	color: #ccc;

+ 2 - 13
templates/tpl-main-bottom.php

@@ -1,21 +1,10 @@
-
-    <nav class="dossiers hide">
-    <h2>Liste des dossiers</h2>
-			<?php
-			foreach ($dossiers as $main_d) {
-				echo "
-					<a href='voir.php?type=dossier&id={$main_d['rowid']}'>{$main_d['name']}</a>
-				";
-			}
-			?>
-    </nav>
     
     
-    <nav class="projets">
+    <nav class="projets sidebar">
       <span class="heading">Projets</span>
       <span class="heading">Projets</span>
 			<?php
 			<?php
 			foreach ($projects as $main_p) {
 			foreach ($projects as $main_p) {
 				echo "
 				echo "
-					<a href='voir.php?type=project&id={$main_p['rowid']}'>{$main_p['name']}</a>
+					<a class="projet" href='voir.php?type=project&id={$main_p['rowid']}'>{$main_p['name']}</a>
 				";
 				";
 			}
 			}
 			?>
 			?>