3505 Commits

Author SHA1 Message Date
Eric Lippmann
beecf16ad0 lib: Add `InvalidPropertyException' 2014-09-12 10:18:48 +02:00
Eric Lippmann
c0e3447339 monitoring: Adapt host and service classes to match their base class' interface 2014-09-12 10:17:46 +02:00
Eric Lippmann
aca5a2e466 monitoring: Fetch Icinga object properties lazily 2014-09-12 10:16:31 +02:00
Thomas Gelf
8ceef96d28 Web\Hook: remove unused methods 2014-09-12 09:53:38 +02:00
Thomas Gelf
93777ac15e Web/Response: use & to encode XHR redirection URLs 2014-09-12 09:28:11 +02:00
Matthias Jentsch
ad53f7ad3d Use EventEmitter class as a way to delegate events from behaviors to the dom 2014-09-12 09:09:21 +02:00
Thomas Gelf
3a5415f7c8 test/Web/Hook: refactor without mocks
Mocks made no sense here. Also introduced a "new" way of naming test
functions. Output now looks as follows:

s\Icinga\Web\Hook
 [x] Knows which hooks are registered
 [x] Correctly handles multiple instances
 [x] Returns null for invalid hooks
 [x] Returns null for failing hook
 [x] Checks whether created instances inherit base classes
 [x] Throws errors for instances not inheriting base classes
 [x] Creates identical instances only once
 [x] Returns an empty array with no registered hook
2014-09-12 09:07:27 +02:00
Thomas Gelf
0e926ba05e Revert "Revert "Web\Hook: register('grapher')
This reverts commit 65564cda65413bf9ee266d673f48463d07ab7895.

The test was wrong, not the code.
2014-09-12 09:02:23 +02:00
Alexander Fuhr
583fd46f15 Experimental Plural Translation Implementation
Personal BACKUP
2014-09-11 18:04:10 +02:00
Eric Lippmann
b6ac31d10f monitoring/commands: Let transports use the Icinga command file command renderer
refs #6593
2014-09-11 17:39:59 +02:00
Eric Lippmann
1df8076234 monitoring/commands: Add command renderer for the Icinga command file
refs #6593
2014-09-11 17:39:13 +02:00
Eric Lippmann
b4faa0142b monitoring/commands: Add object command forms
refs #6593
2014-09-11 17:20:20 +02:00
Eric Lippmann
746e75e5ed monitroing/commands: Remove method `CommandForm::inline()'
Inline forms will set themselves as inline.

refs #6593
2014-09-11 17:19:00 +02:00
Eric Lippmann
3845301dfb monitoring/commands: Add object command classes
refs #6593
2014-09-11 17:18:07 +02:00
Eric Lippmann
92571599df monitoring/commands: Move toggle instance feature command forms into a single form
refs #6593
2014-09-11 17:16:13 +02:00
Eric Lippmann
22771e6f6f monitoring/commands: Rename DisableNotificationsCommandForm' to DisableNotificationsExpireCommandForm'
The associated command also has 'Expired' in its name.

refs #6593
2014-09-11 17:13:57 +02:00
Eric Lippmann
c40ac6f9dc monitoring/commands: Add `DisableNotificationsExpireCommand'
refs #6593
2014-09-11 17:11:32 +02:00
Eric Lippmann
1247fdcad4 monitoring/commands: Move toggle instance feature commands into a single command
refs #6593
2014-09-11 17:10:20 +02:00
Alexander Fuhr
3615b96093 Fix Incorrect plural form in host overview
fixes #7172
2014-09-11 15:46:23 +02:00
Alexander Fuhr
65564cda65 Revert "Web\Hook: register('grapher') => GrapherHook"
This reverts commit 4a89c2e16354559797b626ced77b7fbf389c277d.
2014-09-11 15:00:28 +02:00
Alexander Fuhr
6cf8307e0d GettextTranslationHelper::updateHeader() - rename vars for matchResults 2014-09-11 13:39:32 +02:00
Alexander Fuhr
8ba86a3689 Merge branch 'feature/translation-module-documentation-7113' 2014-09-11 12:57:39 +02:00
Alexander Fuhr
3e41fd6a50 Add translation module documentation
resolves #7113
2014-09-11 12:55:02 +02:00
Matthias Jentsch
9376ceed33 Add missing use-statement for Exceptions in MenuRenderer
fixes #7157
2014-09-10 17:12:19 +02:00
Matthias Jentsch
2e0bef5696 Add missing event unbind 2014-09-10 17:10:08 +02:00
Matthias Jentsch
095f110efc Merge branch 'bugfix/move-events-into-separate-classes-7140'
fixes #7140
2014-09-10 17:05:06 +02:00
Matthias Jentsch
0ec97eb934 Only apply navigation link-click handlers to menu 2014-09-10 17:02:39 +02:00
Matthias Jentsch
e216ba6721 Merge stash 2014-09-10 17:02:39 +02:00
Matthias Jentsch
7aadad913e Do not follow empty menu links 2014-09-10 17:02:39 +02:00
Matthias Jentsch
cb9c9c78d8 Move navigation events into behavior 2014-09-10 17:02:39 +02:00
Matthias Jentsch
c0908e32ba Remove unused behavior base-class 2014-09-10 17:02:39 +02:00
Matthias Jentsch
f58da73e2d Move javascript behaviors into separate classes 2014-09-10 17:02:39 +02:00
Matthias Jentsch
5d2e849491 Apply behaviors correctly on startup 2014-09-10 17:02:39 +02:00
Matthias Jentsch
d99d50b3c4 Add stub for javascript behaviors 2014-09-10 17:02:38 +02:00
Thomas Gelf
ea63dad087 viewHelpers: use the view
refs #7177
2014-09-10 16:56:26 +02:00
Thomas Gelf
631b3d9f6e viewHelpers: There is no $this, not before 5.4
refs #7177
2014-09-10 16:54:57 +02:00
Thomas Gelf
c2fe0232ca helpers/attributes: escape value
refs #7177
2014-09-10 16:07:00 +02:00
Matthias Jentsch
27960fc628 Catch exceptions in MenuItemRenderers
fixes #7157
2014-09-10 14:38:11 +02:00
Marius Hein
9c2cf0bd0f StateHistoryQuery: Make whereToSql robust
This fixes bugs is a array for expression comes in or types
does not exist.

fixes #7133
2014-09-10 10:07:03 +02:00
Eric Lippmann
5757a6f34b monitoring: Fix typo in the `Downtime' data view 2014-09-10 09:29:01 +02:00
Eric Lippmann
171b366744 monitoring/commands: Let `AddCommentCommand' be the command object for adding both host and service commands
refs #6593
2014-09-09 16:41:41 +02:00
Eric Lippmann
28a66c8541 monitoring/commands: Introduce `ObjectCommand' for commands that involve a Icinga object
refs #6593
2014-09-09 16:40:09 +02:00
Eric Lippmann
d9fbbca447 monitoring/commands: Move AddCommentCommand' to WithCommentCommand'
`AddCommentCommand' will be the command for adding both host and service comments.

refs #6593
2014-09-09 16:39:22 +02:00
Eric Lippmann
a841b0956d monitoring/commands: Do not require command objects to return the command string
There will be command renderer instead.

refs #6593
2014-09-09 16:35:06 +02:00
Matthias Jentsch
da7e599363 Only remove active elements in navigation on reload 2014-09-09 16:32:15 +02:00
Johannes Meyer
83772c6684 Merge branch 'master' into bugfix/rebuild-form-builder-5525 2014-09-09 16:03:22 +02:00
Alexander Fuhr
7d45384289 Fixes translations module missing header language line
fixes #7154
2014-09-09 15:52:26 +02:00
Matthias Jentsch
71f55e388f Only display custom menu renders on XHR requests and not in regular HTML
The main navigation should be rendered without a working backend.

fixes #7143
2014-09-09 15:33:42 +02:00
Matthias Jentsch
b7c207a9cb Do not drop preselection in the navigation on reload 2014-09-09 15:32:07 +02:00
Johannes Meyer
e7c021845d Simplify subform usage
refs #5525
2014-09-09 15:00:33 +02:00