   </a>
        </li>
        <% if (co2_totals['co2e_market']) { %>
          <li class="nav-item">
            <a class="nav-link" id="co2e-marked-based-card_tablink" data-toggle="tab" href="#co2e-market-based-card_tabpanel" role="tab" aria-controls="co2e-market-based-card_tabpanel" aria-expanded="false">
              With market-based energy mix
            </a>
          </li>
        <% } %>
      </ul>

      <div class="tab-content" id="co2e-card_tabcontent">

      <!-- All tasks - location-based v