3072 Commits

Author SHA1 Message Date
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
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
Matthias Jentsch
da7e599363 Only remove active elements in navigation on reload 2014-09-09 16:32:15 +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
Matthias Jentsch
157818c8e7 Fix navigation reload
Activate the correct menu item with JavaScript after relaod and don't
 render it on server-side on XHR requests.
2014-09-09 13:57:48 +02:00
Matthias Jentsch
56b779af4d Clean up mousemove handler and remove unused tooltip code 2014-09-08 16:46:47 +02:00
Matthias Jentsch
28f5ef2284 Fix elementsOverlap function for SVG elements
Access SVG getBBox function to acquire the bounding box for SVG elements
2014-09-08 16:37:20 +02:00
Matthias Jentsch
a352131d65 Move charts.less into widgets.less
Don't use a separate less file for only two styles
2014-09-08 16:25:11 +02:00
Matthias Jentsch
40611659ed Fix disappearing tooltips on SVG reload
Use a unified linebreak in the chart controller, so the tooltip handling will recognize the titles as identical
2014-09-08 16:23:14 +02:00
Matthias Jentsch
0fd561928a Remove cached version of dompdf log.htm from source control 2014-09-08 16:22:15 +02:00
Matthias Jentsch
545db945da Auto refresh menu
Put the navigation into a container and reload it once every 15 seconds from a distinct menu action. Include the current
path into an URL param to still be able to mark the current menu item as active.

fixes #6955
2014-09-08 15:21:14 +02:00
Alexander Fuhr
e8d526fcf9 StaticController: Fix img file inclusion 2014-09-08 12:59:22 +02:00
Alexander Fuhr
7386ae5ef5 Update Module img_ route to get image subfolders 2014-09-08 11:31:05 +02:00
Thomas Gelf
2112d45c3c doc/components.md: obsolete, remove
We do not load any component with require.js or similar
2014-09-08 10:53:26 +02:00
Matthias Jentsch
e8164c6da0 Show tooltips to describe menu badges 2014-09-08 10:38:02 +02:00
Matthias Jentsch
e39dd64a1b Fix layout of HistoryColorGrid
Use actual color for critical hosts and only display the first two letters of the weekday
2014-09-08 09:52:28 +02:00
Matthias Jentsch
39688ece90 Do not show badge when menu is active 2014-09-08 09:36:33 +02:00
Alexander Fuhr
c304c230bd Add development folder to .gitignore 2014-09-07 23:20:59 +02:00
Gunnar Beutner
7d623fdfe3 Fix spelling mistake: Unandled -> Unhandled 2014-09-05 23:42:49 +02:00
Thomas Gelf
6095e44064 Host/Service: provide process_perfdata attribute 2014-09-05 19:05:13 +02:00
Thomas Gelf
4a89c2e163 Web\Hook: register('grapher') => GrapherHook 2014-09-05 18:54:50 +02:00
Thomas Gelf
ccb8f51ba9 list/eventhistory: sort by timestamp, not raw_ts 2014-09-05 18:44:29 +02:00
Thomas Gelf
cbaa2d8ae9 StateHistoryQuery: tune type queries 2014-09-05 18:41:51 +02:00
Thomas Gelf
adab58e769 list/statehistorysummary: fix filter links 2014-09-05 18:38:56 +02:00
Thomas Gelf
22b3b0e46a list/hosts: no time for pending, state on dashboard 2014-09-05 18:36:56 +02:00