<h1>Tools Index</h1>
<p>Note: If the <strong>Resources</strong> toggle does not work, refresh the page! Or <a href="https://github.com/dunphyben/epicoding" target="_blank">fork the repo</a> and fix the bug! :)</p>

<% @tools.each do |tool| %>
  <ul>
    <li><%= link_to tool.name, tool_path(tool.id) %> | <span class="resources">Resources</span> <% if current_user %>| <%= link_to "Add Resource", new_tool_resource_path(tool.id), :class => 'btn-resources' %><% end %></li>

    <div class="hidden-resources">
      <% tool.resources.each do |resource| %>
      <ul>
        <li><%= link_to resource.name, tool_resource_path(tool, resource) %> | <a href="<%= resource.url %>" target="_blank"><%= resource.url %></a></li>
        <ul>
          <li><%= resource.summary %></li>
        </ul>
      </ul>
      <% end %>
    </div>
  </ul>
<% end %>

<br>
<br>
<br>

<h1>Tools Index</h1>
<p>Note: If the <strong>Resources</strong> toggle does not work, refresh the page! Or <a href="https://github.com/epicoding/epicoding" target="_blank">fork the repo</a> and fix the bug! :)</p>

<% @tools.each do |tool| %>
  <ul>
    <li><%= link_to tool.name, tool_path(tool.id) %> | <span class="resources">Resources</span> <% if current_user %>| <%= link_to "Add Resource", new_tool_resource_path(tool.id), :class => 'btn-resources' %><% end %></li>

    <div class="hidden-resources">
      <% tool.resources.each do |resource| %>
      <ul>
        <li><%= link_to resource.name, tool_resource_path(tool, resource) %> | <a href="<%= resource.url %>" target="_blank"><%= resource.url %></a></li>
        <ul>
          <li><%= resource.summary %></li>
        </ul>
      </ul>
      <% end %>
    </div>
  </ul>
<% end %>

<br>
<br>
<br>

Fix fork repo link on tools index
Fix fork repo link on tools index
