<% if mapping.taggings.any? %>
  <span class="rm">Tagged with:</span>
  <ul class="tag-list remove-bottom-margin pull-right">
    <% mapping.taggings.each do |tagging| %>
      <% tag = tagging.tag.to_s %>
      <li>
        <% if @filter.tags.include?(tag) %>
          <span class="tag tag-active"><%= tag %></span>
        <% else %>
          <%= link_to tag, @filter.query.with_tag(tag), class: 'tag' %>
        <% end %>
      </li>
    <% end %>
  </ul>
<% end %>

<% if mapping.taggings.any? %>
  <span class="rm">Tagged with:</span>
  <ul class="tag-list remove-bottom-margin pull-right">
    <% mapping.taggings.each do |tagging| %>
      <% tag = tagging.tag.to_s %>
      <li>
        <% if @filter %>
          <% if @filter.tags.include?(tag) %>
            <span class="tag tag-active"><%= tag %></span>
          <% else %>
            <%= link_to tag, @filter.query.with_tag(tag), class: 'tag' %>
          <% end %>
        <% else %>
          <span class="tag"><%= tag %></span>
        <% end %>
      </li>
    <% end %>
  </ul>
<% end %>

Kill two bugs with one bird
Kill two bugs with one bird

* Stop @filter blowing up in the saved mappings modal because
  _tags assumes it's only ever being used from MappingsController#index
* Don't make the tags links when we're not on MappingsController#index
