Skip to content

App to show a disclaimer that the user has to agree before accessing ownCloud. If the user doesn't check the "agree" checkbox, an error will be displayed and she/he won't be able to continue until it gets checked.

License

Notifications You must be signed in to change notification settings

PiratenparteiHessen/agreedisclaimer

 
 

Repository files navigation

AgreeDisclaimer

App to show a disclaimer that the user has to agree before accessing OwnCloud. If the user doesn't check the "agree" checkbox, an error will be displayed and she/he won't be able to continue until it gets checked.

You can either show a link to open a dialog with the disclaimer text, a link to a pdf file, or both.

It is also multi-language, so, you can add as many languages as you want and you can define a default one if the user's language hasn't been translated yet. The application uses the l10n language service of ownCloud, so, in order to add a new language, create two files inside: agreedisclaimer/l10n, ie: "fr_BE.js" and "fr_BE.json"; you will find a template called en.pot with the messages I'm using in the application. Just add the respective headers and footers to the translation files and paste that template in the middle of them.

I'm not a native English nor German speaker, so, I would appreciate if you correct my translations and send me some feedback. I would also appreciate if you translate it in your own language, please see: jmeile#13

You can contact me through this form:

https://apps.owncloud.com/messages/?action=newmessage&username=jmeile&PHPSESSID=o79r9jk0oe3ubbqb0c4h7shja4

Or send me an email to: jmeile at hotmail dot com

For reporting issues, please use the tracker: https://github.com/jmeile/agreedisclaimer/issues

TODO:

  • Fix the style sheets so that the pdf icon gets vertical aligned.
  • Allow to upload text and pdf files through the admin settings

If you are willing to help me with these three points you can send me the patch files to my email. I invested lots of time trying to fix the css issue, but I couldn't figure out how to do it; anyway, it doesn't look that bad :-)

##Upgrading Before you update the app, please make copy the contents of the folders: "agreedisclaimer/pdf", "agreedisclaimer/txt", and, if you translated/modified your own languages, then also copy "l10n". Afterwards, do the update and overwrite the first two folders. Then overwrite only the files you modified from the "l10n" folder. In order to keep the translations up to date you need to translate the missing messages from the template "l10n/en.pot".

About

App to show a disclaimer that the user has to agree before accessing ownCloud. If the user doesn't check the "agree" checkbox, an error will be displayed and she/he won't be able to continue until it gets checked.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.8%
  • PHP 45.5%
  • CSS 3.0%
  • Makefile 0.7%