lib/flapjack/gateways/web/views/contact.html.erb in flapjack-0.9.6 vs lib/flapjack/gateways/web/views/contact.html.erb in flapjack-1.0.0rc1

- old
+ new

@@ -79,13 +79,13 @@ <tr> <td><%= h media.capitalize %></td> <td> <% checks.each do |entity_check| %> <% entity, check = entity_check.split(':', 2) %> - <% check_link = "<a href=\"/check?entity=#{u(entity)}&amp;check=#{u(check)}\" title=\"check status\">" + + <% check_link = "<a href=\"#{u(@base_url)}check?entity=#{u(entity)}&amp;check=#{u(check)}\" title=\"check status\">" + h(check) + "</a>"%> - <a href="/entity/<%= u(entity) %>" title="entity status"><%= h entity %></a> :: + <a href="<%= @base_url %>entity/<%= u(entity) %>" title="entity status"><%= h entity %></a> :: <%= check_link %> <br /> <% end %> </td> </tr> <% end %> @@ -142,13 +142,13 @@ <% entity = ec[:entity] checks = ec[:checks] %> <tr> - <td><a href="/entity/<%= u(entity.name) %>" title="entity status"><%= h entity.name %></a></td> + <td><a href="<%= @base_url %>entity/<%= u(entity.name) %>" title="entity status"><%= h entity.name %></a></td> <td> <% checks.each do |check| %> - <%= "<a href=\"/check?entity=#{u(entity.name)}&amp;check=#{u(check)}\" title=\"check status\">#{ h check }</a>" %> + <%= "<a href=\"#{u(@base_url)}check?entity=#{u(entity.name)}&amp;check=#{u(check)}\" title=\"check status\">#{ h check }</a>" %> <% end %> </td> </tr> <% end %> </table>