diff --git a/setup/website_forum_subscription/odoo/addons/website_forum_subscription b/setup/website_forum_subscription/odoo/addons/website_forum_subscription new file mode 120000 index 0000000000..fb4146ae50 --- /dev/null +++ b/setup/website_forum_subscription/odoo/addons/website_forum_subscription @@ -0,0 +1 @@ +../../../../website_forum_subscription \ No newline at end of file diff --git a/setup/website_forum_subscription/setup.py b/setup/website_forum_subscription/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/website_forum_subscription/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/website_forum_subscription/README.rst b/website_forum_subscription/README.rst new file mode 100644 index 0000000000..d5829dfd63 --- /dev/null +++ b/website_forum_subscription/README.rst @@ -0,0 +1,90 @@ +========================== +Website Forum Subscription +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d74438ad14ac2d5fb49a9cd66ec6adc159c82934ae8de37f7a84e5e3b157fea6 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github + :target: https://github.com/OCA/website/tree/15.0/website_forum_subscription + :alt: OCA/website +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/website-15-0/website-15-0-website_forum_subscription + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Allows users to subscribe/unsubscribe from forum notifications. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to your website/forum page. +#. If there are several forums, you'll find a subscription button in every card. Click + on it to subscribe or unsubscribe depending on your forum subscription state. +#. In the main forum page, you'll find the same button on top of the forum panel. + You can proceed in the same manner as above. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `__: + + * David Vidal + * Stefan Ungureanu + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/website `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_forum_subscription/__init__.py b/website_forum_subscription/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website_forum_subscription/__manifest__.py b/website_forum_subscription/__manifest__.py new file mode 100644 index 0000000000..953f49f895 --- /dev/null +++ b/website_forum_subscription/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2022 Tecnativa David Vidal +# Copyright 2023 Tecnativa Carolina Fernandez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Website Forum Subscription", + "summary": "Adds a button to allow subscription from the website", + "version": "16.0.1.0.0", + "category": "Website", + "website": "https://github.com/OCA/website", + "author": ("Tecnativa, " "Odoo Community Association (OCA)"), + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["website_forum"], + "data": ["templates/website_forum_templates.xml"], +} diff --git a/website_forum_subscription/i18n/es.po b/website_forum_subscription/i18n/es.po new file mode 100644 index 0000000000..1f4dda56f3 --- /dev/null +++ b/website_forum_subscription/i18n/es.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_forum_subscription +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-10-21 13:55+0000\n" +"PO-Revision-Date: 2022-10-21 16:00+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 2.3\n" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Subscribe to forum notifications" +msgstr " Suscribirse a las notificaciones" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Unsubscribe from forum notifications" +msgstr " Anular suscripción a notificaciones" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Subscribe" +msgstr "" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Unsubscribe" +msgstr "" + +#~ msgid " Subscribe" +#~ msgstr " Suscribirse" + +#~ msgid "Follow" +#~ msgstr "Seguir" + +#~ msgid "Unfollow" +#~ msgstr "Dejar de seguir" diff --git a/website_forum_subscription/i18n/it.po b/website_forum_subscription/i18n/it.po new file mode 100644 index 0000000000..b14513a73f --- /dev/null +++ b/website_forum_subscription/i18n/it.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_forum_subscription +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-12-27 17:45+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Subscribe to forum notifications" +msgstr " Iscrizione alle notifiche del forum" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Unsubscribe from forum notifications" +msgstr "" +" Elimina iscrizione alle notifiche del forum" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Subscribe" +msgstr "Iscrizione" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Unsubscribe" +msgstr "Annulla iscrizione" diff --git a/website_forum_subscription/i18n/website_forum_subscription.pot b/website_forum_subscription/i18n/website_forum_subscription.pot new file mode 100644 index 0000000000..a27ad8799b --- /dev/null +++ b/website_forum_subscription/i18n/website_forum_subscription.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_forum_subscription +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Subscribe to forum notifications" +msgstr "" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid " Unsubscribe from forum notifications" +msgstr "" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Subscribe" +msgstr "" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Unsubscribe" +msgstr "" diff --git a/website_forum_subscription/readme/CONTRIBUTORS.rst b/website_forum_subscription/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..2864ddbc47 --- /dev/null +++ b/website_forum_subscription/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* `Tecnativa `__: + + * David Vidal + * Stefan Ungureanu + * Carolina Fernandez diff --git a/website_forum_subscription/readme/DESCRIPTION.rst b/website_forum_subscription/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..b580f55455 --- /dev/null +++ b/website_forum_subscription/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Allows users to subscribe/unsubscribe from forum notifications. diff --git a/website_forum_subscription/readme/USAGE.rst b/website_forum_subscription/readme/USAGE.rst new file mode 100644 index 0000000000..b72e9d1426 --- /dev/null +++ b/website_forum_subscription/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +#. Go to your website/forum page. +#. If there are several forums, you'll find a subscription button in every card. Click + on it to subscribe or unsubscribe depending on your forum subscription state. +#. In the main forum page, you'll find the same button on top of the forum panel. + You can proceed in the same manner as above. diff --git a/website_forum_subscription/static/description/icon.png b/website_forum_subscription/static/description/icon.png new file mode 100644 index 0000000000..4f3e086bfa Binary files /dev/null and b/website_forum_subscription/static/description/icon.png differ diff --git a/website_forum_subscription/static/description/index.html b/website_forum_subscription/static/description/index.html new file mode 100644 index 0000000000..bc452550da --- /dev/null +++ b/website_forum_subscription/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Website Forum Subscription + + + +
+

Website Forum Subscription

+ + +

Beta License: AGPL-3 OCA/website Translate me on Weblate Try me on Runboat

+

Allows users to subscribe/unsubscribe from forum notifications.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to your website/forum page.
  2. +
  3. If there are several forums, you’ll find a subscription button in every card. Click +on it to subscribe or unsubscribe depending on your forum subscription state.
  4. +
  5. In the main forum page, you’ll find the same button on top of the forum panel. +You can proceed in the same manner as above.
  6. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • David Vidal
    • +
    • Stefan Ungureanu
    • +
    • Carolina Fernandez
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/website project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/website_forum_subscription/templates/website_forum_templates.xml b/website_forum_subscription/templates/website_forum_templates.xml new file mode 100644 index 0000000000..d6bd76bbd8 --- /dev/null +++ b/website_forum_subscription/templates/website_forum_templates.xml @@ -0,0 +1,68 @@ + + + + + + +