Skip to content

Commit

Permalink
Add icon for Home Directory link
Browse files Browse the repository at this point in the history
  • Loading branch information
robinkar committed Sep 28, 2023
1 parent e887f21 commit 0583809
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/dashboard/app/views/files/_favorites.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

<nav>
<ul id="favorites" class="nav nav-pills flex-column">
<li role="presentation" class="nav-item"><%= link_to 'Home Directory', files_path(Dir.home), class: "nav-link d bg-light" %></li>
<li role="presentation" class="nav-item">
<%= link_to files_path(Dir.home), class: "nav-link d bg-light" do %>
<%= fa_icon "home", classes: '' %>
Home Directory
<% end %>
</li>
<% OodFilesApp.new.favorite_paths.each do |p| %>
<li class="nav-item">
<%= link_to files_path(p.filesystem, p.path.to_s), class: "nav-link d bg-light" do %>
Expand Down

0 comments on commit 0583809

Please sign in to comment.