Skip to content
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 a last state change filter and handy sorting options #47

Merged
merged 4 commits into from
Mar 20, 2015

Conversation

RyanFrantz
Copy link
Collaborator

  • Filter by last state change with values defined in the config file. Suggested times are of the last 15 minutes, 1 hour, 12 hours, 1 day, and 1 week.
  • Expose the $sort_by_time config value as a checkbox in the settings dialog. Allow the user to override it and store that value in a cookie.
  • Allow the output to be sorted in descending order. This works for the default (hostnames) view and sorting by time.

I think I'll still owe you a minor update to the README about these feature updates, and probably a 5-minute demo.

Ryan Frantz added 3 commits March 7, 2015 15:44
- Some undefined variables, scoping, and incorrect key names.
- Filter by last state change with hard-coded values of the last 15minutes, 1 hour, 12 hours, 1 day, and 1 week.
- Expose the  config value as a checkbox in the settings dialog. Allow the user to override it and store that value in a cookie.
- Allow the output to be sorted in descending order. This works for the default (hostnames) and sorting by time.
- Added some CSS for padding things around words and checkboxes in the settings dialog box.
… rather than hard-coding them.

- Updated the config example with good starting points for last state change time periods.
- Fixed a minor bug around $filter_sort_by_time.
echo '<label class="checkbox inline tag_label">';
echo '<input type="checkbox" name="sort_descending"' . $checked_sort_descending . '>';
echo '</label>';
echo '</span>';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this block out of the <?php clause and make it plain HTML and only activate php for the variable stuff? Would make it much easier to read or change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's reasonable.

RyanFrantz added a commit that referenced this pull request Mar 20, 2015
Add a last state change filter and handy sorting options
@RyanFrantz RyanFrantz merged commit 1782f8b into lozzd:master Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants