{{define "layout_widget"}}
<div class="table-wrap">
  <table class="tbl">
    <thead><tr><th class="cell-num">#</th><th>файл источника → раскладка</th><th>роль</th></tr></thead>
    <tbody>
    {{range $i, $f := .}}
      <tr class="{{if $f.Ignored}}ignored{{end}}">
        <td class="cell-num">{{add $i 1}}</td>
        <td>
          <div class="fname">{{$f.Src}} <span class="arr">→</span></div>
          <div class="link-to">
            {{if $f.Linked}}<span class="src">{{$f.Dst}}</span>{{else}}<span class="no-link">не разложен</span>{{end}}
          </div>
        </td>
        <td><span class="badge {{if $f.Ignored}}st-cancelled{{else}}st-done{{end}}">{{$f.RoleLabel}}</span></td>
      </tr>
    {{end}}
    </tbody>
  </table>
</div>
{{end}}
