-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 the possibility of only displaying incidents in the timeline #2825
Conversation
02f424e
to
c33f16d
Compare
A lot of files have been changed when they don't need to be, things like translation files and New translations also need to go to CrowdIn; https://translate.cachethq.io |
Ok, thanks for your response! One of the changes I did on the translation files was removing the space on the The |
3b9f170
to
57fa6c5
Compare
@jbrooksuk I already removed the translation changes 👍 |
57fa6c5
to
7ec57e6
Compare
<div class="checkbox"> | ||
<label> | ||
<input type="hidden" value="0" name="app_only_display_incidents"> | ||
<input type="checkbox" value="1" name="app_only_display_incidents" {{ Config::get('setting.app_only_display_incidents') ? 'checked' : null }}> |
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 use the Config
facade here, instead we pass through a value, see how the rest are done 👍
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.
Done 👍
@jbrooksuk what do you think of using the "Only show days containing incidents in the timeline?" configuration option for this behaviour? |
7ec57e6
to
104ae85
Compare
@rarguelloF I much prefer it :) |
@jbrooksuk changes already done 👍 |
7281b01
to
76934e1
Compare
76934e1
to
c968a8f
Compare
Looks good! Thank you. |
Hooray! Your first Pull Request was merged, here's to many more 🚀 |
I added an option to just show incidents, no matter the distance between dates, in the timeline.
For example, if you had incidents on the days 2015-2-24, 2016-2-24, and 2017-4-12, and the
app_incident_days
option is set to2
, you would see in the first page, all the incidents from 2017-4-12 and 2016-2-24, and in the second page (previous one), all the incidents from 2015-2-24.This option takes for granted the
Only show days containing incidents in the timeline?
option (it doesn't display days without incidents).Screenshots
Please let me know if you like this feature, or if you want me to change something in the code.
Kind regards,
Rodrigo