-
Couldn't load subscription status.
- Fork 69
Fixed "Remember me" in Login #380
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
Changes from all commits
67166aa
6c73f86
d03726c
4a318ec
e7990fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| module MessagesHelper | ||
| def alert_class(alert) | ||
| if alert == 'error' || alert == 'alert' | ||
| 'alert-danger' | ||
| elsif alert == 'success' | ||
| 'alert-success' | ||
| elsif alert == 'notice' | ||
| 'alert-info' | ||
| else | ||
| 'alert-info' | ||
| end | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| <% flash.each do |key, value| %> | ||
| <div class="alert alert-<%= key %>"> | ||
| <% next if key == 'timedout' %> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. related: heartcombo/devise#1777 |
||
|
|
||
| <div class="alert <%= alert_class(key) %>"> | ||
| <button type="button" class="close" data-dismiss="alert">x</button> | ||
| <ul> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we fix indentation here 🙏 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll do it in the next PR 💪 |
||
| <li> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # Be sure to restart your server when you modify this file. | ||
|
|
||
| Rails.application.config.session_store :cookie_store, key: '_timeoverflow_session', expire_after: 1.hour | ||
| Rails.application.config.session_store :cookie_store, key: '_timeoverflow_session' |
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.
@mllocs maybe we can move this to
ApplicationHelper, I think we don't need an extra module only for this helper method (I'm also removing "blank" helpers in #361).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'll create an issue where we can discuss this, I prefer to tackle it in a different PR since we already tested it 😄
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.
no prob @mllocs, I'll do it in #361 while rebasing develop