Commit 6292354d by Tô Ngọc Ánh

change html a tag to link_to

parent 3a3b04a3
Pipeline #768 failed with stages
in 0 seconds
......@@ -19,7 +19,7 @@
<div class='row'>
<%= render partial: 'locations/city', collection: @top_cities, as: :location %>
</div>
<a href='<%= cities_path %>'>All Cities</a>
<%= link_to 'All Citites', cities_path %>
</div>
<div id='top-industries' class='my-4 text-center'>
<h1>Top Industries</h1>
......@@ -27,5 +27,5 @@
<div class='row'>
<%= render partial: 'industries/industry', collection: @top_industries, as: :industry %>
</div>
<a href='<%= industries_path %>'>All Industries</a>
<%= link_to 'All Industries', industries_path %>
</div>
<nav class='navbar navbar-expand-lg navbar-light sticky-top'>
<a class='navbar-brand' href='<%= root_path %>'>
<%= link_to root_path, class: 'navbar-brand' do %>
<%= image_tag 'venjob-logo.png', alt: 'VeNJob', size: '120x50' %>
</a>
<% end %>
<button class='navbar-toggler' type='button' data-toggle='collapse' data-target='#navbarSupportedContent' aria-controls='navbarSupportedContent' aria-expanded='false' aria-label='Toggle navigation'>
<span class='navbar-toggler-icon'></span>
</button>
......@@ -9,10 +9,10 @@
<div class='collapse navbar-collapse' id='navbarSupportedContent'>
<ul class='navbar-nav ml-auto'>
<li class='nav-item active'>
<a class='nav-link text-white' href='#'>Sign in</a>
<%= link_to 'Sign in', '#', class: 'nav-link text-white' %>
</li>
<li class='nav-item'>
<a class='nav-link text-white' href='#'>Sign up</a>
<%= link_to 'Sign up', '#', class: 'nav-link text-white' %>
</li>
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment