This would be more readable if each `if` branch was on its own line:

```
<div class="tag">
  <% if entry['tag'] != nil && entry['tag'] != '' %>
    <%= entry['tag'] %>
  <% else %>
    -
  <% end %>
</div>
```