Skip to content

Commit

Permalink
Fixes logic in helper, fixes styling
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Nov 17, 2023
1 parent 91217ca commit f7ab009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ def resolution_field(form, id, opts = {})
end

def pathselector_favorites(favorites)
# If favorites is false, return nil
if favorites.nil?
OodFilesApp.new.favorite_paths.reject(&:remote?)
else
elsif favorites
favorites.map { |f| FavoritePath.new(f) }
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<% end %>


<div class="col-sm-7">
<div class="<%= favorites ? 'col-sm-7' : 'col-sm-12' %>">
<ol id="<%= breadcrumb_id %>" class="breadcrumb breadcrumb-no-delimiter">
</ol>

Expand Down

0 comments on commit f7ab009

Please sign in to comment.