-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
allow to specify a link to a legal notice #9437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
core/css/guest.css
Outdated
|
|
||
| a.legal { | ||
| font-size: smaller; | ||
| text-decoration: underline; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No underline on links please. We don't do that anywhere, compare to "Nextcloud" in the footer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we have a style for external links that does this: https://github.com/nextcloud/server/blob/master/core/css/styles.scss#L65-L68 I am fine with removing it however.
| <div class="advanced-options"> | ||
| <div> | ||
| <label> | ||
| <span><?php p($l->t('Legal notice address')) ?></span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Legal notice link"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Further up is also "Web address", I used this for conistency.
server/apps/theming/templates/settings-admin.php
Lines 50 to 51 in 62f1156
| <span><?php p($l->t('Web address')) ?></span> | |
| <input id="theming-url" type="url" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change that one to »Website link« also. »Address« is just too ambiguous, especially for a legal notice. It might as well be the postal address of an imprint. (I know it says »https://…« but let’s make sure to use simple language.)
|
What about a seperate „Privacy“ link? |
Requirement was link to imprint/legal notice on login page. If more should be placed there, we need a different, flexible approach, as I am not gonna add links for also Cookies, Contact us, Security, Cialis, Blog, etc. Perhaps with some pre-defined labels to allow easy translation, that's a significantly more work however. |
|
The However, it is working fine - THX 👍 |
juliusknorr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I would prefer to have this integrated in the external sites app, since it would make the whole mechanism a lot more flexible and fit better to the concept of external sites than theming, i'd be fine to merge this to have it available quickly.
Looks good besides some small comments.
| <div> | ||
| <label> | ||
| <span><?php p($l->t('Legal notice address')) ?></span> | ||
| <input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('Legal notice address https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably remove the Legal notice address from the placeholder, since that is duplicate to the label.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for web address then ^
| <label> | ||
| <span><?php p($l->t('Legal notice address')) ?></span> | ||
| <input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('Legal notice address https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" /> | ||
| <div data-setting="imprintUrl" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The undo button is not working, as in not visible to the user. You probably need to add the empty default value here: https://github.com/nextcloud/server/pull/9437/files#diff-7336f3dab52c02ef94f856620590f56bR80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the key issue was missing CSS rules for url-input fields, undoing "web address" was also broken. fixed with a coming commit :)
|
|
@juliushaertl external sites did not come up to my mind, and i have not looked at it for ages… last time i hada glance, you could only insert a link. This looks more interesting now :) But getting this to work there needs to be wired with templates at least, if not theming (pre-/post-footer vs. general footer). And, as you say, cannot be just shipped to 13 out of its maintenance release. |
and minor adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Codecov Report
@@ Coverage Diff @@
## master #9437 +/- ##
============================================
- Coverage 51.61% 51.61% -0.01%
- Complexity 25684 25699 +15
============================================
Files 1638 1638
Lines 96283 96341 +58
Branches 1393 1393
============================================
+ Hits 49695 49723 +28
- Misses 46588 46618 +30
|
|
I left "address" instead calling it link to keep it consistent with the web url. otherwise, all remarks are addressed. |
|
@blizzz see my follow-up comment to the wording link. Let’s change both, otherwise it’s fine. :) |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
|
@jancborchardt done |
rullzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
allow to specify a link to a legal notice Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> fix tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> fix undo for url-typed inputs and minor adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Use link not address in labels for URLs Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> this file does not belong here Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Adds another input field to theming settings:
the legal notice is added to the footer (default is empty):
Also fixes a bug where changes to input[type=url] where not saved.