summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix "Undefined index: user_uid" on login pageJoas Schilling2019-02-221-4/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix OC.getCurrentUser() on guest pagesJoas Schilling2019-02-191-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide initial stateRoeland Jago Douma2019-01-291-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* SCSS cache buster is a combination of apps/theming/scc_varsRoeland Jago Douma2018-12-201-1/+8
| | | | | | | Else on scss files we'd get <file>?v=<hash>?v=<hash2> This is of course not valid. Now it becomes <file>?v=<hash>-<hash2> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove outdated integrity warning on each pageMorris Jobke2018-11-121-6/+0
| | | | | | | * integrity warning is shown during update and in the admin setup checks * there is also the plan to retire this old way of notification Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fallback to $lang if no $locale matchJohn Molakvoæ (skjnldsv)2018-09-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use user locale as default in the templateJohn Molakvoæ (skjnldsv)2018-09-101-2/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show link to simple sign up pageMorris Jobke2018-08-231-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Design structure fixesJohn Molakvoæ (skjnldsv)2018-07-211-0/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Enable SCSS for guest pagesDaniel Calviño Sánchez2018-07-131-1/+2
| | | | | | | | | | | | | SCSS is disabled for several types of pages, as the SCSS compiler uses the cache system, which is not available for example when Nextcloud is not installed yet. However, in regular guest pages the cache system is available, so SCSS is now enabled for them too. To keep the same behaviour for guest pages the guest style is automatically added for them, as before this commit it was automatically added due to SCSS not being used. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix use of findLocaleGeorg Ehrke2018-06-271-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* OC.getLocale() now returns Locale and no longer LanguageThomas Citharel2018-06-271-1/+2
| | | | | | | Added OC.getLanguage() to get Language <html lang=''> still gets language, though according to IETF BCP47 locale should be good. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Use JSCombiner from server container when searching for JS filesJulius Härtl2018-03-071-7/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #7363 from nextcloud/default-share-permsMorris Jobke2018-02-271-1/+2
|\ | | | | Let the admin configure the default share permissions
| * expose capabilities in jsBjoern Schiessle2018-02-271-1/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Enable renderAs public pageJulius Härtl2018-02-271-0/+4
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Deprecate static methods and use Navigation managerJulius Härtl2018-02-121-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use proper lanugage in langauge codeRoeland Jago Douma2018-02-071-1/+3
| | | | | | | | Fixes #8180 The _ is not valid in language codes use - instead. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Load guest css on any guest and error pageJulius Härtl2018-02-021-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use correct L10N files for jsconfigRoeland Jago Douma2018-01-051-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Invert app icons on IE11 as wellJulius Härtl2018-01-031-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix 500 on setup pageMorris Jobke2017-12-111-10/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix syntax errorMorris Jobke2017-12-111-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixed phpdoc and function typeJohn Molakvoæ (skjnldsv)2017-12-111-2/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed md5 generation and added fallback for scss requestsJohn Molakvoæ (skjnldsv)2017-12-111-6/+32
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use apps versions to generate suffix when possibleJohn Molakvoæ (skjnldsv)2017-12-111-5/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle if the deps file if for some reason emptyMorris Jobke2017-07-191-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Responsive app menuJulius Härtl2017-04-251-2/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use theming cachebuster for server resourcesJulius Härtl2017-04-251-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-251-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-1/+2
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Register the app management in the normal wayJoas Schilling2017-03-261-6/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add debug modeRoeland Jago Douma2017-03-241-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add cachingRoeland Jago Douma2017-03-241-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [PoC] JS CombinerRoeland Jago Douma2017-03-241-1/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache SCSS dependency file in memcacheRoeland Jago Douma2017-03-221-1/+4
| | | | | | | Since reading a file from disks can be costly. Lets store the dependency json also in memcache. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove test codeLukas Reschke2017-03-211-1/+0
| | | | | | This seems to have been commited by mistake with https://github.com/nextcloud/server/commit/6dbe417c51125419516dd29ebe4e529926c41a0f Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add tests for SCSSCacherJulius Haertl2017-03-201-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #3619 from nextcloud/fix-scss-for-appsMorris Jobke2017-03-161-1/+2
|\ | | | | Fix SCSS usage in apps
| * Properly calculate webdir using the serverrootRoeland Jago Douma2017-03-101-1/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Generate seperate menu list for header barJulius Haertl2017-03-161-0/+2
|/ | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Catch exception from path infoJoas Schilling2017-02-221-1/+8
| | | | | | | We don't really care when the path info can not be gathered correctly. we will simply not use SCSS then but the CSS fallback. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Always enable avatarsMorris Jobke2017-02-131-1/+0
| | | | | | | | | * we introduced this setting in the begining because our avatar support caused some performance issues, but we fixed them and should only provide one way how Nextcloud looks Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix public page css fallback loadingJohn Molakvoæ (skjnldsv)2017-02-011-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix public page styleMorris Jobke2017-01-231-1/+1
| | | | | | | * checks if the user is on the login page or not instead of check if the user is logged in * fixes #3207 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3004 from nextcloud/fix-installation-cssLukas Reschke2017-01-221-15/+17
|\ | | | | Fixed installation page
| * Create unified css file and merge all needed data into this fileJohn Molakvoæ (skjnldsv)2017-01-101-4/+5
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Removed jquery scssJohn Molakvoæ (skjnldsv)2017-01-101-13/+14
| | | | | | | | | | | | | | | | | | | | - Switched to setup.css - Disable scss when displaying the update page - Improved setup css - Fixed loading failure of other styles on setup & update page - Improved scss compiler with an ignore scss compilation option Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>