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

widgets: system log widget #211

Closed
fichtner opened this issue Jun 9, 2015 · 6 comments
Closed

widgets: system log widget #211

fichtner opened this issue Jun 9, 2015 · 6 comments
Labels
feature Adding new functionality help wanted Contributor missing / timeout
Milestone

Comments

@fichtner
Copy link
Member

fichtner commented Jun 9, 2015

No description provided.

@fichtner fichtner added feature Adding new functionality help wanted Contributor missing / timeout labels Jun 9, 2015
@fichtner fichtner added this to the 16.1 milestone Jun 9, 2015
@SashLi
Copy link

SashLi commented Jul 10, 2015

Hey I created a small widget

screen_dashboard_system log

Maybe you can take a look at it.

@fichtner
Copy link
Member Author

Hi Sascha,

that looks great already. :) A few minor things:

  • What we need is a 2-Clause BSD copyright header with your copyright (if you agree to the licensing)
  • A pass for at least PSR 1 coding style: http://www.php-fig.org/psr/psr-1/ (We also have PSR 2, but we can certainly mop that up later.)
  • The RSS widget has a hide/show feature for settings. That would be the proper style for the log lines setting and the save button.

Feel free to create a pull request. I will merge this into master with license agreement and PSR 1 fixup.

Thank you,
Franco

@fichtner
Copy link
Member Author

Oh, one more thing: Header("Location: /"); should be redirecting to /index.php instead, we saw redirect problems from time to time with the dashboard not reachable (fringe case, but still).

@fabianfrz
Copy link
Member

Could you also use gettext to make your widget translatable?
See this link for PHP reference: https://secure.php.net/manual/de/function.gettext.php

@SashLi
Copy link

SashLi commented Jul 14, 2015

Could we do a small review. If everything is fine I will create a pull request. Thanks ;-)

@fichtner
Copy link
Member Author

Looks good now, thanks! :) Will test/merge/fixup (if needed) with PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality help wanted Contributor missing / timeout
Development

No branches or pull requests

3 participants