-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cloud icons for remote favorite paths #3076
Conversation
<li class="nav-item"><%= link_to p.title || p.path.to_s, files_path(p.filesystem, p.path.to_s), class: "nav-link d bg-light" %> | ||
<li class="nav-item"> | ||
<%= link_to files_path(p.filesystem, p.path.to_s), class: "nav-link d bg-light" do %> | ||
<%= fa_icon "cloud", classes: '' %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got to look this over - it looks like you've hard coded cloud
icons for all favorite paths, so I'm either misreading it or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, let me double check that. Seems like some code may have gone missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had indeed gone missing. Added it now.
3d41c92
to
5140353
Compare
<li class="nav-item"><%= link_to p.title || p.path.to_s, files_path(p.filesystem, p.path.to_s), class: "nav-link d bg-light" %> | ||
<li class="nav-item"> | ||
<%= link_to files_path(p.filesystem, p.path.to_s), class: "nav-link d bg-light" do %> | ||
<%= fa_icon "cloud", classes: '' if p.remote? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use folder icon for normal favorite paths, which previously had no icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR adds cloud icons for favorite paths for remote storages both in the navbar and in the file browser.
The navbar items are currently somewhat ugly due to the spacing, but that is fixed in my other open PR (#3075).