<table class="results-table">
{{range .wordList}}
  {{$entry := .}}
  <tr class="word">
    <td class="title">
      <a class="main-entry" href="/{{$entry.Japanese}}">{{html $entry.JapaneseHL}}</a>
      {{if $entry.Common}}
      <div class="label label-success label-common">common</div>
      {{end}}
      <span class="reading">
        {{if eq $entry.Furigana $entry.Japanese}}
        {{else}}
        <a class="furigana-entry" href="/{{$entry.Furigana}}">{{html $entry.FuriganaHL}}</a>
        {{end}}
      </span>
    </td>
    <td class="definition">
      {{range $i, $gloss := $entry.EnglishHL}}
        <div class="gloss">{{add $i 1}}. <a class="english-entry" href="/{{get $entry.English $i}}">{{html $gloss}}</a></div>
      {{end}}
    </td>
  </div>
  </tr>
{{end}}
</table>

<table class="results-table">
{{$user := .user}}
{{range .wordList}}
  {{$entry := .}}
  <tr class="word">
    <td class="title">
      <a class="main-entry" href="/{{$entry.Japanese}}">{{html $entry.JapaneseHL}}</a>
      {{if $entry.Common}}
      <div class="label label-success label-common">common</div>
      {{end}}
      <span class="reading">
        {{if eq $entry.Furigana $entry.Japanese}}
        {{else}}
        <a class="furigana-entry" href="/{{$entry.Furigana}}">{{html $entry.FuriganaHL}}</a>
        {{end}}
      </span>
    </td>
    <td class="definition">
      {{range $i, $gloss := $entry.EnglishHL}}
        <div class="gloss">{{add $i 1}}. <a class="english-entry" href="/{{get $entry.English $i}}">{{html $gloss}}</a></div>
      {{end}}
    </td>

    {{if $user}}
    <td class="save">
      {{if contains $entry.Japanese $user.Words}}
      <span>Saved</span>
      {{else}}
      <a class="btn btn-save" data-value="{{ $entry.Japanese }}" data-action="save" href="#">Save</a>
      {{end}}
    </td>
    {{end}}
  </div>
  </tr>
{{end}}
</table>

Add save button for logged in users
Add save button for logged in users
