From 4072aca5002ed019a7dc7bad6ad9bc0621a41ad3 Mon Sep 17 00:00:00 2001 From: iopietro Date: Sun, 22 Apr 2018 16:52:59 +0200 Subject: [PATCH] Fixed a graphical error --- Templates/Build/16_incomming.tpl | 33 +++++++++++------------ gpack/travian_default/lang/en/compact.css | 11 ++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/Templates/Build/16_incomming.tpl b/Templates/Build/16_incomming.tpl index 69374453..50496515 100644 --- a/Templates/Build/16_incomming.tpl +++ b/Templates/Build/16_incomming.tpl @@ -24,7 +24,7 @@ if ($units[$y]['sort_type']==3){ $reinfowner = $database->getVillageField($units[$y]['from'],"owner"); if($units[$y]['attack_type'] != 1){ if($units[$y]['from'] != 0){ - if($units[$y]['t11'] != 0 && $reinfowner == $session->uid) { + if($units[$y]['t11'] > 0 && $reinfowner == $session->uid) { $colspan = 11; }else{ $colspan = 10; @@ -154,15 +154,15 @@ $to = $database->getMInfo($units[$y]['vref']); vname; ?> - "> + - + tribe; $start = ($tribe-1)*10+1; $end = ($tribe*10); - echo " "; + echo " "; for($i=$start;$i<=($end);$i++) { echo "getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; } @@ -183,30 +183,27 @@ $to = $database->getMInfo($units[$y]['vref']); } } ?> - + - + if($units[$y]['attack_type'] != 2 && $units[$y]['attack_type'] != 1 && !empty($totalres)){?> + - "> + \"Lumber\"".$res['wood']."\"Clay\"".$res['clay']."\"Iron\"".$res['iron']."\"Crop\"".$res['crop'].""; - echo "
\"carry\"".$totalres."/".$totalcarry."
"; - ?> - + echo "
\"Lumber\"".$res['wood']." | \"Clay\"".$res['clay']." | \"Iron\"".$res['iron']." | \"Crop\"".$res['crop']."
"; + echo "
\"carry\"".$totalres."/".$totalcarry."
"; + ?> + - "> + ".$generator->getTimeFormat($units[$y]['endtime']-time())." h"; $datetime = $generator->procMtime($units[$y]['endtime']); diff --git a/gpack/travian_default/lang/en/compact.css b/gpack/travian_default/lang/en/compact.css index de9e1353..d29e3afb 100644 --- a/gpack/travian_default/lang/en/compact.css +++ b/gpack/travian_default/lang/en/compact.css @@ -4956,6 +4956,17 @@ div#build.gid16 table.troop_details tbody.units td { div#build.gid16 table.troop_details tbody.infos th, div#build.gid16 table.troop_details tbody.infos td { background-color: #F3F3F3; } +div#build.gid16 table.troop_details tbody.goods td { + padding: 2px; + width: 7.2%; +} +div#build.gid16 table.troop_details tbody.goods div.res { + text-align: left; + white-space: nowrap; +} +div#build.gid16 table.troop_details tbody.goods div.carry { + text-align: right; +} div#build.gid16 table.troop_details div { float: left; text-align: center;