Procházet zdrojové kódy

Flip "This Month" and "Last Month" columns in Overview page

Alan Lam před 4 roky
rodič
revize
373737b41b
2 změnil soubory, kde provedl 6 přidání a 10 odebrání
  1. 6 6
      controllers/overview.php
  2. 0 4
      views/overview.php

+ 6 - 6
controllers/overview.php

@@ -17,18 +17,18 @@ $ranges[] = [
 	"end" =>  $dt_now->endOfYear()
 	"end" =>  $dt_now->endOfYear()
 ];
 ];
 
 
-$ranges[] = [
-	"name" => __("This Month"),
-	"start" => $dt_now->startOfMonth(),
-	"end" => $dt_now->endOfMonth(),
-];
-
 $ranges[] = [
 $ranges[] = [
 	"name" => __("Last Month"),
 	"name" => __("Last Month"),
 	"start" => $dt_now->subMonthNoOverflow()->startOfMonth(),
 	"start" => $dt_now->subMonthNoOverflow()->startOfMonth(),
 	"end" => $dt_now->subMonthNoOverflow()->endOfMonth(),
 	"end" => $dt_now->subMonthNoOverflow()->endOfMonth(),
 ];
 ];
 
 
+$ranges[] = [
+	"name" => __("This Month"),
+	"start" => $dt_now->startOfMonth(),
+	"end" => $dt_now->endOfMonth(),
+];
+
 View::includeOnce("header", compact("page_title"));
 View::includeOnce("header", compact("page_title"));
 View::include("overview", compact("page_title", "ranges"));
 View::include("overview", compact("page_title", "ranges"));
 View::includeOnce("footer");
 View::includeOnce("footer");

+ 0 - 4
views/overview.php

@@ -76,10 +76,6 @@ $exclude_project_ids = array_column($exclude_projects, "id");
 					}
 					}
 					?>
 					?>
 				</div>
 				</div>
-				<?php
-
-
-				?>
 			</div>
 			</div>
 			<?php
 			<?php
 		}
 		}