|
88 | 88 | <th class="col-md-2">{% if capabilities.electricity_returned %}{% trans "Returned" %} ({% trans "kWh" noop %}){% endif %}</th>
|
89 | 89 | <th class="col-md-2">{% trans "Cost" %} (€)</th>
|
90 | 90 | </tr>
|
| 91 | + {% if frontend_settings.merge_electricity_tariffs %} |
| 92 | + <tr> |
| 93 | + <td>{% if capabilities.electricity %}{% trans "Electricity (single tariff)" %}{% endif %}</td> |
| 94 | + <td><span class="badge bg-red">{% if capabilities.electricity %}{{ month_statistics.electricity_merged|default:'-' }} </span>{% endif %}</td> |
| 95 | + <td><span class="badge bg-green">{% if capabilities.electricity_returned %}{{ month_statistics.electricity_returned_merged|default:'-' }}{% endif %}</span></td> |
| 96 | + <td><span class="badge bg-black">{% if capabilities.electricity %}{{ month_statistics.electricity_cost_merged|default:'-' }}{% endif %}</span></td> |
| 97 | + </tr> |
| 98 | + {% else %} |
91 | 99 | <tr>
|
92 | 100 | <td>{% if capabilities.electricity %}{% trans "Electricity 1 (low tariff)" %}{% endif %}</td>
|
93 | 101 | <td><span class="badge bg-red">{% if capabilities.electricity %}{{ month_statistics.electricity1|default:'-' }} </span>{% endif %}</td>
|
|
100 | 108 | <td><span class="badge bg-green">{% if capabilities.electricity_returned %}{{ month_statistics.electricity2_returned|default:'-' }}{% endif %}</span></td>
|
101 | 109 | <td><span class="badge bg-black">{% if capabilities.electricity %}{{ month_statistics.electricity2_cost|default:'-' }}{% endif %}</span></td>
|
102 | 110 | </tr>
|
| 111 | + {% endif %} |
103 | 112 | {% if capabilities.gas %}
|
104 | 113 | <tr>
|
105 | 114 | <td>{% trans "Gas" %}</td>
|
|
141 | 150 | <th class="col-md-2">{% if capabilities.electricity_returned %}{% trans "Returned" %} ({% trans "kWh" noop %}){% endif %}</th>
|
142 | 151 | <th class="col-md-2">{% trans "Cost" %} (€)</th>
|
143 | 152 | </tr>
|
| 153 | + {% if frontend_settings.merge_electricity_tariffs %} |
| 154 | + <tr> |
| 155 | + <td>{% if capabilities.electricity %}{% trans "Electricity (single tariff)" %}{% endif %}</td> |
| 156 | + <td><span class="badge bg-red">{% if capabilities.electricity %}{{ consumption.electricity_merged|default:'-' }} </span>{% endif %}</td> |
| 157 | + <td><span class="badge bg-green">{% if capabilities.electricity_returned %}{{ consumption.electricity_returned_merged|default:'-' }}{% endif %}</span></td> |
| 158 | + <td><span class="badge bg-black">{% if capabilities.electricity %}{{ consumption.electricity_cost_merged|default:'-' }}{% endif %}</span></td> |
| 159 | + </tr> |
| 160 | + {% else %} |
144 | 161 | <tr>
|
145 | 162 | <td>{% if capabilities.electricity %}{% trans "Electricity 1 (low tariff)" %}{% endif %}</td>
|
146 | 163 | <td><span class="badge bg-red">{% if capabilities.electricity %}{{ consumption.electricity1|default:'-' }} </span>{% endif %}</td>
|
|
153 | 170 | <td><span class="badge bg-green">{% if capabilities.electricity_returned %}{{ consumption.electricity2_returned|default:'-' }}{% endif %}</span></td>
|
154 | 171 | <td><span class="badge bg-black">{% if capabilities.electricity %}{{ consumption.electricity2_cost|default:'-' }}{% endif %}</span></td>
|
155 | 172 | </tr>
|
| 173 | + {% endif %} |
| 174 | + |
156 | 175 | {% if capabilities.gas %}
|
157 | 176 | <tr>
|
158 | 177 | <td> {% trans "Gas" %}</td>
|
|
0 commit comments