Commit Graph

2060 Commits

Author SHA1 Message Date
Eric Lippmann 93829bde92 config.ini: Fix indents 2014-06-02 13:33:17 +02:00
Eric Lippmann 50e01d1284 Config: Rename `configPath' to `config_path'
We use underscore_case notation for all configuration keys.

refs #4952
2014-06-02 12:09:16 +02:00
Eric Lippmann 3a25f019c5 Vagrant/finalize.sh: Remove dmode and fmode options from mount.vboxsf
The dmode and fmode options seem to set the execute bit even when the mode is 775.

refs #5982
2014-06-02 10:47:44 +02:00
Eric Lippmann 1619d682c7 vendor: Remove executeable bit from a read me file of HTMLPurifier
refs #5982
2014-06-02 10:45:30 +02:00
Michael Friedrich 31f4c9b1b2 Require at least Vagrant 1.2.x in Vagrantfile
Users don't read READMEs or documentation, they'll
just fire 'vagrant up'. Vagrant already checks the
Virtualbox version itself, but for the Vagrant version
no checks exist. Vagrant 1.4 provides a method 'require_version'
which is pretty useless for older versions, like on Debian
Wheezy (1.0.3). So we'll ship our own version comparison.

fixes #6366
2014-05-30 16:21:04 +02:00
Thomas Gelf 324a4c973d Translation: new time-related since/for strings
Updated German translation

refs #5981
2014-05-29 11:22:39 +00:00
Gunnar Beutner 5cc69b53cf Remove superfluous space in prefixedTimeSince
refs #5981
2014-05-29 13:11:01 +02:00
Thomas Gelf f767fb2de3 js/ui: rename timeunless to timeuntil
CSS filter adjusted to fit recent changes

refs #5981
2014-05-29 11:09:52 +00:00
Gunnar Beutner a66a1a4729 Refactor the timeSincePrefix and timeUntilPrefix functions
Instead of having two separate functions to get the prefix
and the formatted time interval the new functions return
both the prefix and the time interval.

refs #5981
2014-05-29 13:03:10 +02:00
Gunnar Beutner 7b0a48bef5 Rename timeUnless to timeUntil
refs #5981
2014-05-29 12:38:59 +02:00
Gunnar Beutner d01a98b7e6 Fix some of the time-related grammar mistakes
This updates some of the messages to use "For"
instead of "Since" where appropriate.

fixes #5981
2014-05-29 11:30:08 +02:00
Thomas Gelf e7e7ae72ba Encoding: decode encoded titles
Related to the last commit, forgot to decode titles
2014-05-28 21:39:34 +00:00
Thomas Gelf 88460189cd Encoding: no ASCII chars > 127 in HTTP headers
Had quite some trouble with this, decided to URL-encode titles and
notifications.
2014-05-28 21:34:36 +00:00
Ulf Lange b0b2d21751 icingaweb2.spec: Fixes for SLES 11
Refs #4075

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2014-05-28 21:16:23 +02:00
Thomas Gelf cf6f1f8bf4 icinga/loader.js: play nice with invalid responses
Even responses with no HTML or no root node or similar must be rendered
successfully to their containers.
2014-05-28 15:59:42 +00:00
Thomas Gelf 5b24ed1a15 CLI/ModuleCommand: helpful message with no module
'icingacli module list' gave "There is no module installed" instead
of "There is no enabled module". Fixed this, the former message is
still shown when doing 'icingacli module list installed'.
2014-05-28 11:45:58 +00:00
Thomas Gelf d10b4c5e93 Translation: a few more German strings
Especially search suggestions

refs #6340
2014-05-28 11:16:11 +00:00
Thomas Gelf f7c5119424 Search: split result and search hint
There was an ugly if/else in the view script, this patch creates two
of them and adds friendlier search suggestions.
2014-05-28 11:13:41 +00:00
Thomas Gelf 92f454c36d Chart\InlinePie: locale-ignorant casts for floats
PHP respects locales (LC_NUMERIC) when casting floats to string. That
affected the generated HTML for our inline pie charts. This patch is
not that beautiful - but fixes this.

fixes #6348
2014-05-28 10:20:34 +00:00
Thomas Gelf 7a0173e2fb monitoring/IdoQuery:
IDO version is cached in a session namespace. This fails where you
are using multiple IDO backends with different versions. We still have
no backend-specific base class where we could handle this, so for now
I continue to do so in the IdoQuery.

This patch creates one namespace per Host/dbname combination.
2014-05-28 09:39:38 +00:00
Thomas Gelf f790e0c323 Translation: keep translation domain with partial
We should try to avoid partial and pass translation domain where forced
to use it.

refs #6338
2014-05-27 22:20:21 +00:00
Thomas Gelf 7b58134378 show/history: sorry, typo 2014-05-27 22:16:45 +00:00
Thomas Gelf b7d3f0e54c Translation: another global view helper
refs #6338
2014-05-27 22:15:19 +00:00
Thomas Gelf 3ae4f762d8 Translation: initial German translation
refs #6340
2014-05-27 21:50:16 +00:00
Thomas Gelf 92d3e4e9f8 Translation: global translation for view helpers
As our pagination helper is used in multiple domains gettext would
fail if we don't explicitely call the correct translation function
carrying the "global" domain.

refs #6338
2014-05-27 21:48:05 +00:00
Thomas Gelf cfa0251dbf Translation: another bunch of translatable strings
refs #6339
2014-05-27 21:47:13 +00:00
Thomas Gelf b47cec3e02 Translation: use translation for monitoring/views
Just a bunch of translation-helper calls

refs #6339
2014-05-27 21:44:02 +00:00
Thomas Gelf 360ac87550 Translation: add a module-aware translation helper
With this fix $this->translate works in our view scripts

refs #6338
2014-05-27 21:41:46 +00:00
Thomas Gelf 886c8b1231 js/notifications: fixed target=ignore notification
Ongoing error handling cleanup silently dropped notifications for
requests with "invalid" target (e.g. commands not redirecting after
submission - they should not exist, but they do).

This is redundant code, but that's ok for now - response handling will
be restructured.

fixes #6327
refs #6280
2014-05-27 10:54:44 +00:00
Thomas Gelf 40e45a2a39 monitoring/lists: Don't render unexistant controls
Even PHP code in HTML comments will be executed. As the filter object
sometimes failes, this can result in an invisible "breaking" exception.

refs #6031
2014-05-26 14:57:18 +00:00
Thomas Gelf 70ba36aad6 notifications: improve client- and serverside
This is just a first step, trying to catch a few gotchas:

* it doesn't send notifications to the browser when issueing a redirect
  as redirects can currently not be catched in jQuery response handlers
* it tries to find a better notification handling place in the response
  handler (JS) - still imperfect
* it explicitely stores sessions once modified by notifications. Still
  need to crosscheck whether this is really needed and how we can get
  rid of this.

refs #6280
2014-05-26 14:41:47 +00:00
Thomas Gelf 4f1b7f16e4 config/modules: prepare new view scripts
The controller is still pointing to the former view script, it will
soon be replaced by this ones. As soon as I created two forms handling
enable/disable requests this will be completed.

refs #4095
2014-05-26 14:38:03 +00:00
Thomas Gelf af41ae875d monitoring/module.info: provide sample metadata
We are currently able to read module metadata, but our modules don't
provide such. Here you go, feel free to extend it's description.
2014-05-26 14:35:59 +00:00
Thomas Gelf ed0b731062 config/module: remove unused show.phtml
I see no reference to this file, byebye.
2014-05-26 14:32:59 +00:00
Thomas Gelf 8a770007ff Modules\Module: provide a lighter header sample
We should get rid of the current way of copying license snippets to
every single file. This is a first example of how a lighter header
could look like. I'd add a short slogan to the title and place a
copy of the license to icinga.org, so our links could point there
instead of gnu.org.

refs #6309
2014-05-26 14:17:46 +00:00
Thomas Gelf 7c68d0a30f Modules\Module: clean up phpdoc blocks 2014-05-26 14:14:34 +00:00
Thomas Gelf 5b87d6238b Modules\Module: improve provided metadata
refs #4095
2014-05-26 14:11:43 +00:00
Thomas Gelf 7fb910bf21 layout/menu: don't show uncollapsed loading menu
We have a no-JS-friendly CSS showing the menu uncollapsed unless JS
is fully loaded. Even if the page loads pretty fast this looks still
ugly in JS-enabled browsers.

This patch adds a JS-snippet removing the no-js class from the HTML
element before the rendering engine reaches the body. You'll see no
more flickering in your JS-enabled browser.

fixes #6307
2014-05-26 13:46:14 +00:00
Thomas Gelf ce220c5ea7 sidebar/menu: menu should be scrollable
This allows us to scroll menus not fitting into available screen height.
Plays nice with menu hovering, however once you scroll down your menu
you'll temporarily disable the hover-menu-feature.

fixes #6283
2014-05-26 08:18:47 +00:00
Michael Friedrich 9a8965510a Install icingacli and bash completion in Vagrant VM
fixes #6264
refs #5803
2014-05-23 15:26:46 +02:00
Alexander Klimov f07776890e Make icingacli bash completion working
fixes #5803
2014-05-22 16:31:18 +02:00
Thomas Gelf 6a33f4e5e0 vendor/dompdf: fix typo 2014-05-20 23:59:49 +00:00
Thomas Gelf f32eab627a js/forms: treat buttons like input-buttons
This fixes a few autosubmission-detection woes.
2014-05-20 23:55:18 +00:00
Thomas Gelf e4180e3e38 packages/debian: initial commit, basic sample 2014-05-20 23:33:04 +00:00
Thomas Gelf 8ff757f6df Inline\PieChart: code style 2014-05-20 23:29:13 +00:00
Thomas Gelf cf42ffbafa Parsedown: version 1.0 released 2014-05-20 22:56:01 +00:00
Thomas Gelf 796a5977df /files: remove useless file 2014-05-20 22:49:49 +00:00
Thomas Gelf 24f2ae607f Pdf/Charts: add initial chart support to PDFs
Problem: TCPDF had SVG support, dompdf hasn't. This patch adds a
first rudimentary PNG conversion and a sample implementation making
use of such.
2014-05-20 22:48:06 +00:00
Thomas Gelf 5e69d1d997 layout/pdf: fix module css support
Containers need the correct module classes to get their correct CSS
also for PDFs
2014-05-20 22:46:36 +00:00
Thomas Gelf bfff645a08 layout-script: disable chrome translate suggestion
The way Chrome suggests translation is ugly and may result in a GUI
"jumping up and down". One more vendor specific meta attribute :(
2014-05-20 22:41:34 +00:00