Skip to content

Commit

Permalink
Remove minus signs in <%- -%>
Browse files Browse the repository at this point in the history
Apparently not all versions of erb like this?
  • Loading branch information
joto committed Oct 31, 2020
1 parent 1e5b795 commit b4b96e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions web/views/key.erb
Expand Up @@ -22,18 +22,18 @@
</form>
<div id="tools" class="no-print">
<ul>
<%- if @count_all_values <= TaginfoConfig.get('xapi.max_results', 1000) -%>
<% if @count_all_values <= TaginfoConfig.get('xapi.max_results', 1000) %>
<li class="button"><%= xapi_link(@filter_xapi, @key) %></li>
<li class="button"><%= josm_link(@filter_xapi, @key) %></li>
<%- else -%>
<% else %>
<li class="button disabled" title="<%= h(t.pages.key.button_disabled) %>">XAPI</li>
<li class="button disabled" title="<%= h(t.pages.key.button_disabled) %>">JOSM</li>
<%- end -%>
<%- if @count_all_values <= TaginfoConfig.get('level0.max_results', 10) -%>
<% end %>
<% if @count_all_values <= TaginfoConfig.get('level0.max_results', 10) %>
<li class="button"><%= level0_link() %></li>
<%- else -%>
<% else %>
<li class="button disabled" title="<%= h(t.pages.key.button_disabled) %>">Level0 Editor</li>
<%- end -%>
<% end %>
<li class="button"><%= turbo_link(@count_all_values, @filter_type, @key) %></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions web/views/relation.erb
Expand Up @@ -5,13 +5,13 @@
</div>
<div id="tools" class="no-print">
<ul>
<%- if @count_all_values <= TaginfoConfig.get('xapi.max_results', 1000) -%>
<% if @count_all_values <= TaginfoConfig.get('xapi.max_results', 1000) %>
<li class="button"><%= xapi_link('relation', 'type', @rtype) %></li>
<li class="button"><%= josm_link('relation', 'type', @rtype) %></li>
<%- else -%>
<% else %>
<li class="button disabled" title="<%= h(t.pages.relation.button_disabled) %>">XAPI</li>
<li class="button disabled" title="<%= h(t.pages.relation.button_disabled) %>">JOSM</li>
<%- end -%>
<% end %>
<li class="button"><%= turbo_link(@count_all_values, 'relations', 'type', @rtype) %></li>
</ul>
</div>
Expand Down
12 changes: 6 additions & 6 deletions web/views/tag.erb
Expand Up @@ -22,18 +22,18 @@
</form>
<div id="tools">
<ul>
<%- if @count_all < TaginfoConfig.get('xapi.max_results', 1000) -%>
<% if @count_all < TaginfoConfig.get('xapi.max_results', 1000) %>
<li class="button"><%= xapi_link(@filter_xapi, @key, @value) %></li>
<li class="button"><%= josm_link(@filter_xapi, @key, @value) %></li>
<%- else -%>
<% else %>
<li class="button disabled" title="<%= h(t.pages.tag.button_disabled) %>">XAPI</li>
<li class="button disabled" title="<%= h(t.pages.tag.button_disabled) %>">JOSM</li>
<%- end -%>
<%- if @count_all <= TaginfoConfig.get('level0.max_results', 10) -%>
<% end %>
<% if @count_all <= TaginfoConfig.get('level0.max_results', 10) %>
<li class="button"><%= level0_link() %></li>
<%- else -%>
<% else %>
<li class="button disabled" title="<%= h(t.pages.tag.button_disabled) %>">Level0 Editor</li>
<%- end -%>
<% end %>
<li class="button"><%= turbo_link(@count_all, @filter_type, @key, @value) %></li>
</ul>
</div>
Expand Down

0 comments on commit b4b96e6

Please sign in to comment.