diff --git a/website_forum_subscription/README.rst b/website_forum_subscription/README.rst new file mode 100644 index 0000000000..7e1a8775db --- /dev/null +++ b/website_forum_subscription/README.rst @@ -0,0 +1,92 @@ +========================== +Website Forum Subscription +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a16b7259e6947aef9c6cc9237e29bcf89274a353e2914578b18e72fab647a11c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/17.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-17-0/website-17-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=17.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: + +1. Go to your website/forum page. +2. 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. +3. 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 + - Carolina Fernandez + +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..34bda3217f --- /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": "17.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..6a3d7edd86 --- /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: 2023-10-15 20:37+0000\n" +"Last-Translator: Ivorra78 \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: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\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 "Suscribirse" + +#. module: website_forum_subscription +#: model_terms:ir.ui.view,arch_db:website_forum_subscription.follow +msgid "Unsubscribe" +msgstr "Cancelar suscripción" + +#~ 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..eb4394500d --- /dev/null +++ b/website_forum_subscription/i18n/it.po @@ -0,0 +1,44 @@ +# 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: 2023-11-14 15:36+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.17\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" + +#~ msgid "Subscribe" +#~ msgstr "Iscrizione" + +#~ 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..f1dcf7019a --- /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 16.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/pyproject.toml b/website_forum_subscription/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_forum_subscription/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_forum_subscription/readme/CONTRIBUTORS.md b/website_forum_subscription/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..4573419ff4 --- /dev/null +++ b/website_forum_subscription/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [Tecnativa](https://www.tecnativa.com): + - David Vidal + - Stefan Ungureanu + - Carolina Fernandez diff --git a/website_forum_subscription/readme/DESCRIPTION.md b/website_forum_subscription/readme/DESCRIPTION.md new file mode 100644 index 0000000000..b580f55455 --- /dev/null +++ b/website_forum_subscription/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Allows users to subscribe/unsubscribe from forum notifications. diff --git a/website_forum_subscription/readme/USAGE.md b/website_forum_subscription/readme/USAGE.md new file mode 100644 index 0000000000..b806728aee --- /dev/null +++ b/website_forum_subscription/readme/USAGE.md @@ -0,0 +1,8 @@ +To use this module, you need to: + +1. Go to your website/forum page. +2. 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. +3. 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..a0f74f8e86 --- /dev/null +++ b/website_forum_subscription/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +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..6cfe372d86 --- /dev/null +++ b/website_forum_subscription/templates/website_forum_templates.xml @@ -0,0 +1,68 @@ + + + + + + +