<%# benoetigt container=betrieb.freis[1|2|3], kompartiment=luft|wasser|boden %>
<table class="zeilen6">
        <thead>
          <tr>

            <th>Pollutant amount in kg/year</th>

            <th>accidental</th>
            <th>Pollutant</th>
            <th>CAS-number</th>
            <th>Threshold</th>
            <th>Determination method/Method used</th>
          </tr>

        </thead>
        <tbody>
          <% container.each do |freis| %>
            <tr>

              <td class="td-0"><p><%= freis.float_value('jfracht', container.get_digit_length('jfracht')) %> kg</p></td>
              <td class="td-1"><p>
                <% if freis.aggr_vfracht %>&ge;<% end %>
                <%= freis.float_value('vfracht', container.get_digit_length('vfracht')) %>
                <% unless freis['vfracht'].nil? || container.get_digit_length('vfracht')==0 %> kg <% end %>
              </p></td>
              <td class="td-2">
                <% if freis.geheimk.empty? %>
                  <%= freis.wrapped_html_value('stoffname') %>
                <% else %>
                  <p><%= freis['stoffgruppe'] %><span class="confidentialTag"><%= freis.get_kuerzel %></span></p>
                <% end %>
              </td>
              <td class="td-3"><%= freis.wrapped_confidentiable_value('cas_nr','&mdash;') %></td>
              <td class="td-4">
                <%  if freis.confidential? %>
                  <%= freis.wrapped_confidentiable_value("schwellenwert",'&mdash;') %>
                <% else %>
                  <p><%= freis.float_value("schwellenwert", container.get_digit_length('schwellenwert'))%> kg/Jahr</p>
                <% end %>
              </td>

              <td class="td-5"><p><%= freis['bmeth'] %> (<%=  freis.wrapped_confidentiable_value('bverf','confidential', 'span') %>)</p></td>
            </tr>
          <% end %>
        </tbody>
        <% unless container.gklist.empty? %>
          <tfoot>
            <tr>
              <td colspan="6">
                <div class="confidentialLegend" style="background-color: #f4f4f4;">
                  <h4>Confidentiality granted, because:</h4>

                  <% container.gklist.each do |gk| %>
                    <p><span class="confidentialTag">[<%=  gk[0] %>]</span><span><%=  gk[1] %></span></p>
                  <% end %>
                </div>
              </td>
            </tr>
          </tfoot>
        <% end %>
      </table>
