Skip to content

Commit

Permalink
fix: for flsr commodities to show mass
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Dec 26, 2024
1 parent f34cc81 commit c67bb4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions darkstat/front/commodities.templ
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ templ CommodityTable(commodities []*configs_export.Commodity, pinm PinMod, share
@frmt.MultiLinestring([]string{"Best sell ", "per vol", "to base"})
</th>
<th style="width:25px;">Volume</th>
if shared.ShowFLSR {
<th style="width:5px;">Mass</th>
}
if shared.ShowDisco {
<th style="width:5px;">@frmt.MultiLinestring([]string{"Ship", "Class"})</th>
}
Expand All @@ -61,6 +64,9 @@ templ CommodityTable(commodities []*configs_export.Commodity, pinm PinMod, share
<td>{ fmt.Sprintf("%.0f", configs_export.GetPricePerVoume(commodity.PriceBestBaseSellsFor, commodity.Volume)) }</td>
<td>{ fmt.Sprintf("%.0f", configs_export.GetPricePerVoume(commodity.PriceBestBaseBuysFor, commodity.Volume)) }</td>
<td>{ fmt.Sprintf("%.2f", commodity.Volume) }</td>
if shared.ShowFLSR {
<td>{ fmt.Sprintf("%.2f", commodity.Mass) }</td>
}
if shared.ShowDisco {
<td>{ frmt.FormattedShipClassOfCommodity2(commodity.ShipClass) }</td>
}
Expand Down

0 comments on commit c67bb4b

Please sign in to comment.