-
Notifications
You must be signed in to change notification settings - Fork 10
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 functionality to see favorite gem files #19
Conversation
<% if @favorite_gemfiles.present? %> | ||
<ul role="list" class="divide-y divide-gray-100"> | ||
<% @favorite_gemfiles.each do |gemfile| %> | ||
<%= render "gemfiles/gemfile_list_item", gemfile: gemfile %> |
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.
You can use a collection partial here.
<%= render "gemfiles/gemfile_list_item", gemfile: gemfile %> | |
<%= render partial: "gemfiles/gemfile_list_item", collection: @favourite_gemfiles %> |
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 updated gemfiles/index.html.erb
too where it used the same iteration.
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 @varkum ! Looks good.
Closes #17
Gemfiles that have been starred show up under the profile dropdown as "Favorite Gemfiles." Made some UI changes here to the sign out button — can change these if needed.