-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Feat: Added "My Cases" dropdown for volunteers #5272
Merged
schoork
merged 13 commits into
rubyforgood:main
from
Rafael-Martins:create-mycases-dropdown
Oct 22, 2023
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8a2df7e
feat: added dropdown to my cases and fixed the carret
Rafael-Martins 8df4f6c
fix: banner mistaken changed by diff
Rafael-Martins 74b8d92
feat: create a partial for sidebar dropdown item
Rafael-Martins 361f6e0
fix: enable only volunteer to see the dropdown
Rafael-Martins fd2906f
test: add and fix tests for the sidebar
Rafael-Martins b786513
Merge branch 'main' into create-mycases-dropdown
Rafael-Martins 88d10b4
fix: banner postion
Rafael-Martins 1af281f
chore: fix lint
Rafael-Martins 8f81e0b
chore: fix lint
Rafael-Martins 5d880e9
refactor: improve user role check in sidebar
Rafael-Martins 7cf3ebf
refactor: use else instead another if
Rafael-Martins 5d20320
fix: link in sidebar
Rafael-Martins 4ad4f95
test: fix sidebar test
Rafael-Martins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<ul id="<%= dropdown_id %>" class="collapse dropdown-nav"> | ||
<li> | ||
<%= link_to 'All', all_link_path %> | ||
</li> | ||
<% current_user.casa_cases.each do |casa_case| %> | ||
<li> | ||
<%= link_to link_generator.call(casa_case) do %> | ||
<%= casa_case.case_number %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This name could be more specific, since it's not for all dropdowns in the sidebar, but instead for the my_cases dropdown. That being said, don't change this; it will go away with the merge of PR 5086.