Commit Graph

73 Commits

Author SHA1 Message Date
Johannes Meyer 86614ad7a8 layout: Identify language using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer 04b906bff5 layout.phtml: Setup the Icinga js object with the user's locale and timezone 2021-05-17 13:20:42 +02:00
Johannes Meyer 1a2bba0fd5 Use fontawesome icons for the default collapsible control 2021-05-12 12:47:59 +02:00
Johannes Meyer 05aac50ae2 layout: Render basic modal markup 2019-11-04 12:46:30 +01:00
Johannes Meyer 5e09cd647a js: Prevent that collapsible buttons submit forms 2019-07-23 13:53:29 +02:00
Johannes Meyer ced4f505d6 layout.phtml: Remove remaining browser sniffs for IE 2019-07-18 07:57:14 +02:00
Jennifer Mourek 07586af41f Remove IE8 & IE9 traces 2019-07-18 07:56:09 +02:00
Johannes Meyer fb83bee924 css: Make collapsible styles work with the new markup 2019-07-17 13:12:41 +02:00
Florian Strohmaier b07ffd4987 JS: Implement collapsible-container behavior 2019-07-17 13:12:41 +02:00
Florian Strohmaier a1ef28460d Layout: Create collapsible ghost 2019-07-17 12:50:57 +02:00
Johannes Meyer b0b4f08797 layout.phtml: Also include the default title in any title just like for XHR
refs #3851
2019-07-15 08:24:44 +02:00
Johannes Meyer 23776152eb layout: Add base path
refs #2916
2019-06-06 08:16:12 +02:00
Johannes Meyer 8212c51f8d js: Already set `window.name` prior bootstrapping our js runtime
Makes sure that the Window-Id already generated and utilized by the
server on the first request is used by subsequent requests instead
of a new one.

Also avoids that concurrent running id-less requests compete about
which one may set his assigned id. Now any subsequent request
already transmits the id assigned to the first one.

And it resets `window.name` in case the user performs a manual
refresh so that the id used by the server is set/utilized.

refs #3609
2018-11-07 09:13:16 +01:00
Thomas Gelf cc41fc25f3 js, layout: detect initial layout on load
fixes #3107
2017-11-27 13:45:43 +01:00
Thomas Gelf ea96e16c0e layout: disable upload-iFrame for all but IE<10
fixes #3124
2017-11-21 14:36:51 +01:00
Florian Strohmaier f2c37f1e93 Layout: Add viewport-fit descriptor for round-rect displays
refs #2966
2017-09-20 11:46:51 +02:00
Florian Strohmaier 75b6d5009a Provide Pinned Tab Icon for Safari
refs #2853
2017-08-09 11:13:10 +02:00
Johannes Meyer df04c0f837 ActionController: Introduce constant DEFAULT_TITLE
Controllers are now allowed to fully customize the page title.
2017-06-09 11:13:37 +02:00
Florian Strohmaier c59bd73e06 Add meta tags for using Web 2 as mobile web app bookmark
refs #11910
2016-06-07 14:09:21 +02:00
Florian Strohmaier 9f5e1d4785 Remove duplicate meta tag for viewport scale
refs #11910
2016-06-07 14:09:11 +02:00
Florian Strohmaier c7b4ef00e2 Replace multiple touch icon images with universal image
refs #11910
2016-06-07 11:26:28 +02:00
Eric Lippmann 99f0a348c5 Disable transitions on page load 2015-12-15 13:29:30 +01:00
Eric Lippmann b193ea5d32 Fix print styles 2015-12-10 13:34:53 +01:00
Johannes Meyer 57e08e92d4 Do not mark relative urls as absolute
refs #5600
refs #10169
2015-09-22 14:12:08 +02:00
Johannes Meyer fa1e3a763d Do not show the full layout on the login page
...

refs #9892
2015-08-13 08:12:30 +02:00
Johannes Meyer be88683c19 layout.phtml: Add hidden iframe for non-xhr file uploads
refs #8758
2015-07-20 10:14:55 +02:00
Thomas Gelf cd70c27519 Merge remote-tracking branch 'origin/master' into feature/refine-ui-for-rc1-9361 2015-06-18 15:18:42 +02:00
Thomas Gelf 2f62a4383a Layout: add showFullscreen parameter
refs #6729
2015-06-18 13:41:12 +02:00
Thomas Gelf edf8bcca4b layout.phtml: use cleartype on mobile IE 2015-06-15 23:54:12 +02:00
Alexander Klimov 38220afd11 PHP: avoid short tags <? 2014-10-23 10:44:54 +02:00
Eric Lippmann 53608c83d0 iframe: Load JavaScript even when 'isIframe' is true 2014-10-20 13:27:56 +02:00
Thomas Gelf 51366e2c22 layout: change header element order 2014-09-05 13:22:48 +02:00
Thomas Gelf 7334716d15 favicon: add link type
The favicon link tag was missing a type attribute.
2014-08-19 12:25:14 +02:00
Thomas Gelf 17b64f9dd5 layout: add favicon
fixes #6956
2014-08-19 10:13:19 +02:00
Johannes Meyer 461b050718 Add locale negotiation to Icinga\Util\Translator
Translator::getPreferredLocaleCode($header) can now be used with the
HTTP "Accept-Language" header to return the best matching locale using
the user's preferations reported by the browser and our available locale
stack. Additionally Translator::getLocale and Translator::getLanguage were
replaced by Translator::splitLocaleCode to provide a more flexible
implemenation in order to identify specific parts of a particular locale or
the current one.

refs #6074
2014-06-25 12:15:41 +02:00
Thomas Gelf 216f0f3f55 isIframe: clean up, load less html and js
We use isIframe only when we have no JS, therefore it makes no sense
to load JS files in an iFrame. Also removed sidebar.
2014-06-22 16:30:06 +02:00
Thomas Gelf 3b84078b2f Params/_render: get rid of it, start with iframe 2014-06-22 16:18:23 +02:00
Thomas Gelf 0225461d3e layout: add lang to HTML element 2014-06-20 13:14:14 +02:00
Thomas Gelf 44a7aa6adb JS/IE8: deliver legacy jQuery for IE8
This patch makes IcingaWeb deliver a legacy jQuery version for IE8
as it is no longer supported in jQuery 2.x. JS for IE8 will not be
delivered minified to ease troubleshooting on that buggy platform.

fixes #5866
refs #6417
2014-06-12 17:33:28 +00:00
Thomas Gelf 0d15f24f05 JS/IE: remove unused conditional comments
There is no IE7 support and no special handling for IE9, therefore
I removed unused conditional comments. Left IE8 there as it might ask
for special CSS - however it doesn't right now.

Also added missing iframe-class for Iframes on IE8.
2014-06-12 17:25:48 +00:00
Thomas Gelf 6d321d67cd JS/CSS: Get IE8 working
Just a bunch of JS and CSS improvements / fixes

refs #6417
2014-06-05 15:03:59 +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 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
Thomas Gelf 072f157064 Allow developers to disable minimizers 2014-04-07 12:04:23 +00:00
Thomas Gelf 17ce27a985 Ship only one CSS and one JS file 2014-03-27 07:32:45 +00:00
Thomas Gelf af7ca57b41 Clean up JavaScript and CSS loaders, prepare for minimized delivery 2014-03-04 15:15:08 +00:00
Thomas Gelf 5340289e01 JS: history has not been loaded 2014-03-04 13:37:05 +00:00
Thomas Gelf 38a5939544 We WANT to allow users to scale their content, just a note about this 2014-03-04 13:20:10 +00:00
Thomas Gelf d648bbad72 Missing JS change in layout.phtml 2014-03-04 13:12:07 +00:00
Thomas Gelf 715cad86d5 No more layout container handling outside of layout.phtml
* Also added a few base-targets to get rid of hard-coded JS rules
2014-03-04 10:52:37 +00:00