Theming: Add preview and hide undo buttons#770
Conversation
|
@juliushaertl, thanks for your PR! By analyzing the annotation information on this pull request, we identified @schiessle, @LukasReschke and @nickvergessen to be potential reviewers |
|
OK, CI seems to be happy, please review. cc @jancborchardt @nextcloud/theming |
apps/theming/lib/Template.php
Outdated
| */ | ||
| public function getLogo() { | ||
| $logo = $this->config->getAppValue('theming', 'logoMime'); | ||
| $pathToLogo = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data/') . '/themedinstancelogo'; |
There was a problem hiding this comment.
Can you use IRootFolder for that? @schiessle told me about some object store magic and so on that otherwise would not be compatible.
There was a problem hiding this comment.
Yes, always use the Nextcloud file system abstraction to make sure that it works with all underlying storages.
|
I like it 👍 @schiessle Mind taking a look at my remarks? Same as we had in the ThemingController itself |
|
I tested this and it works 👍 (only for translated slogans this doesn't work, because somehow the lib translation files aren't loaded -> but this is not caused by the code in here) |
|
As soon as the comments by @LukasReschke are addressed this can be merged. |
|
I've just pushed another commit. Please check if it is ok like this @LukasReschke @schiessle 😃 |
5447965 to
232cd38
Compare
|
Hmm tests are failing, but I don't have any idea why: |
|
cc @icewind1991 any idea? 🚀 |
apps/theming/css/settings-admin.css
Outdated
| } | ||
|
|
||
| #theming-preview { | ||
| width:230px; |
There was a problem hiding this comment.
Just a nitpick, but coding style here and below: Always a space after the : colon. ;)
232cd38 to
5eb5d1b
Compare
5eb5d1b to
8e5eb01
Compare
|
any news here... @icewind1991 did you had a chance to look at the failing tests? |
8e5eb01 to
cc9dac3
Compare
cc9dac3 to
0e1b5d4
Compare
|
Ok, i've just rebased this to fix the conflicts with the new admin panel. Tests are still failing, but when I run "drone exec" locally everything works fine. Could there be an issue with the CI server? |
|
It's in
usually not, because it also doesn't do anything different 😕 Let me try it locally too. |
|
Works here too ... I restarted the job at the drone instance ... maybe it was a bad race condition due to load. |
|
I guess it's related to the loading order |
0e1b5d4 to
91e8b33
Compare
| max-width: 20%; | ||
| max-height: 20%; | ||
| margin-top: 20px; | ||
| } No newline at end of file |
ba6698d to
086b6ab
Compare
|
OK, I'll close this PR and try to split it up and resubmit. |
This pull requests adds the following to the theming app: