{{#if canAdd}}
<br>
<button class="button-green smaller" {{action "addCharacteristic"}}>
  Add characteristic
</button>
<br><br>
{{/if}}

{{#if measurementsPresent}}
<table class="flakes-table">
  <colgroup>
    {{#if canEdit}}
      <col span="1" style="width:40%">
      <col span="1" style="width:20%">
      <col span="1" style="width:20%">
      <col span="1" style="width:20%">
    {{else}}
      <col span="1" style="width:40%">
      <col span="1" style="width:30%">
      <col span="1" style="width:30%">
    {{/if}}
  </colgroup>
  <thead>
    <tr>
      <th>Characteristic</th>
      <th>Value</th>
      <th>Notes</th>
      {{#if canEdit}}
      <th>Edit</th>
      {{/if}}
    </tr>
  </thead>
  <tbody>
    {{#each sortedMeasurements as |measurement|}}
      {{
        protected/strains/show/measurements-table-row
        row=measurement
        canEdit=canEdit
      }}
    {{/each}}
  </tbody>
</table>
{{else}}
No measurements on record.
{{/if}}