-
Notifications
You must be signed in to change notification settings - Fork 195
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
Hera/Improve parity #1337
base: develop
Are you sure you want to change the base?
Hera/Improve parity #1337
Conversation
This reverts commit 092517d.
@@ -26,34 +50,18 @@ def flash_messages | |||
end.join("\n").html_safe | |||
end | |||
|
|||
def in_project? | |||
defined?(current_project) && current_project&.persisted? |
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.
defined?(current_project) && current_project&.persisted? | |
current_project && current_project.persisted? |
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.
we don't need the safeguard since we shouldn't end up on the right side of this expression unless current_project
exists
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.
defined?(current_project)
returns "method"
but we only need to check whether it's nil
or not
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.
Unless this is due to a strange case where it's defined and not set? There is probably a nicer way to handle this case
'in-project': in_project? | ||
), | ||
data: { | ||
env: (Rails.env unless Rails.env.production?), |
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.
What's the purpose of this line?
Co-authored-by: Caitlin Henry <[email protected]>
Summary
This PR brings additional CSS to improve parity between Dradis CE and Dradis Pro.
Check List