Commit Graph

90 Commits

Author SHA1 Message Date
Thibault Delavallée 2a2cbfc5ae [FIX] website_forum: comment deletion now working by calling the right url 2015-02-03 12:26:33 +01:00
Jeremy Kersten 5d58b5551f [FIX] website_forum: use other attr than value to init select2
The backend would otherwise fail because the value has been already processed
2014-12-01 20:03:31 +01:00
Jeremy Kersten 3c0cf7c977 [FIX] website_forum: restore bind to onclick because CKE Editor uses it, so on('click', fun) breaks things.
Fixes bugs with z-index error on some popups (image selector for example...)
2014-12-01 20:01:00 +01:00
Jeremy Kersten c41109f2f0 [FIX] website_forum:
Remove useless document ready
   Add select2 to frontend to allow public user to use tags
2014-11-18 16:20:58 +01:00
Jeremy Kersten 3288f07eaa [FIX] website_forum:
Use if_dom_contains to check if we need to load js
   Fix bug where _tag_to_write_vals was called like old API but model converter was new api
   Move IsKarmaValid and Load CKE only in website_forum context
2014-11-18 14:31:36 +01:00
Jeremy Kersten 86a6619dc8 [FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install... 2014-11-17 16:50:52 +01:00
Jeremy Kersten 90b88e33cb [FIX] website_forum - replace texttext by select2 for the tags fields 2014-11-17 16:50:34 +01:00
Christophe Simonis c825d0552d [MERGE] forward port of branch saas-3 up to ec27773 2014-11-05 21:46:42 +01:00
ssh-odoo ef8099424d [IMP] [TEST] website_forum: security fixes + tests
- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
2014-10-23 11:36:03 +02:00
Jeremy Kersten 287ea2fb17 [IMP] website_*forum,blog,instantclick,...: Move Js in assets 2014-08-28 12:21:47 +02:00
Thibault Delavallée 1e402cb084 [FIX] website_forum: fixed comment unlink action :
- fixed call to a wrong method
- fixed button display, now based on the standard way of managing karma (popup when
not having the required karma)
- fixed button display karma computation
- some css tweaking for this button
2014-08-27 11:41:51 +02:00
Jay Patel f274572c30 [FIX] website_forum: when a user posting a new answer or question does not have a valid email address, redirect to the user's profile instead of crashing when trying to send notifications. 2014-08-05 10:05:49 +02:00
Thibault Delavallée abbe4ef76c [FIX] website_forum: fixed issue with user vote badly taken into account when upvoting / downvoting + crash due to wrong field name. Backport of Leonardo Donelli PR for master. 2014-07-10 09:03:53 +02:00
Thibault Delavallée 2a4ec367a9 [IMP] [FIX] website_forum: cleaned and improved the management of available actions based on the user's karma. The karma levels are now stored on the forum itself, allowing customization. The various check of karma are done at model level and not at controller level anymore, leading to a more secure and easier to inherit behavior. 2014-07-01 10:29:37 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Niels Huylebroeck e59077b0f9 Fix displaying of minKarma requirements 2014-06-19 15:23:54 +02:00
Thibault Delavallée 907862655a [FIX] website_forum: people having enough karma can accepts answers on every question, not just their own. Fixed the condition computation. 2014-06-11 13:56:23 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Thibault Delavallée 1fbc5c1cfb [FIX] website_forum: fixed issues with images in question / answers, now limited
in width + auto height. Improved rule for img-avatar to avoid being overriden
by the default img rule.
2014-05-15 11:38:00 +02:00
Xavier Morel 023aa7acdf [FIX] website_forum links which should not be, post-install crawler
* move URLs of purely-JS-hook <a> to data-href so the crawler does not try to
  access them (they're JSON-RPC endpoints...)
* replace side-effecting links (...) by styled buttons
* fix crawler to not take fragments in account when deduplicating and
  navigating URLs
2014-05-12 18:34:55 +02:00
Christophe Simonis b8089a1521 [MERGE] forward port of branch saas-4 up to revid 9410 chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
bzr revid: chs@openerp.com-20140507170112-bjeltv2b0coy60am
2014-05-07 19:01:12 +02:00
Thibault Delavallée 69ec02b2d4 [FIX] website_forum: more fixes :
- display tag name in 'filter' bar when filtering on a tag
- display active tag in a blue color
- order answers: correct first, then most upvoted

bzr revid: tde@openerp.com-20140506123001-fz5gt6i9zw6ondcu
2014-05-06 14:30:01 +02:00
Fabien Meghazi b0cbaf330a [IMP] website: load website.xml templates only in editable mode
bzr revid: fme@openerp.com-20140505113800-wv5vh802us270oez
2014-05-05 13:38:00 +02:00
Thibault Delavallée 252be1b9ab [FIX] website_forum: various fixes and usability improvements
- question title is now a link
- fixed a crash when trying to see badges in the 'new badge' notification
- improved the tags manager: manage tag at blur event (otherwise the last tag
was ften not created) + manage already-existing tags

bzr revid: tde@openerp.com-20140423142034-5si58h4jgd1jyyem
2014-04-23 16:20:34 +02:00
Christophe Simonis 12beacda08 [MERGE] backport of trunk revisions:
9362 fp@tinyerp.com-20140421205739-rki3bctinjy3amzy [MERGE] new module: website_forum_doc + small fixes (close) in forum
9363 fp@tinyerp.com-20140421213850-19gk3hfz8qxa6fw3 [IMP] improved form view for posts

bzr revid: chs@openerp.com-20140422143249-3cfh18tenn3a5ry1
2014-04-22 16:32:49 +02:00
Thibault Delavallée 018624ea43 [IMP] website_forum: better error messages about karma
bzr revid: tde@openerp.com-20140418151608-0pb3ui97aksb9en1
2014-04-18 17:16:08 +02:00
Thibault Delavallée a6103a08be [IMP] [FIX] website_forum: better karma management for votes
and answers. Also some fixes in answer tagging and edition closing.

bzr revid: tde@openerp.com-20140418132905-ja2rqcc2edqzu3jv
2014-04-18 15:29:05 +02:00
Thibault Delavallée 06776da4a9 [IMP] website_forum: karma management for vote
bzr revid: tde@openerp.com-20140411182254-0wyvzpcqxk4jyqev
2014-04-11 20:22:54 +02:00
Thibault Delavallée b9b087ffb5 [FIX] [CLEAN] website_forum: cleaned and fixed upvote, downvote and favourite
bzr revid: tde@openerp.com-20140411171029-zeqtrko98z1jr3sm
2014-04-11 19:10:29 +02:00
Thibault Delavallée 5a3f68a767 [FIX] website_forum: deleting a comment is back and works
bzr revid: tde@openerp.com-20140411170114-po5bgwc2z2qgs8f0
2014-04-11 19:01:14 +02:00
Thibault Delavallée b6a1359b4f [FIX] website_forum: convert comment to post is back and works
bzr revid: tde@openerp.com-20140411161916-rlobfxosniii66m4
2014-04-11 18:19:16 +02:00
Thibault Delavallée 133038c722 [FIX] website_forum: fixed toggle_correct for setting answers as correct
bzr revid: tde@openerp.com-20140411155622-18bdyddcs6hdln77
2014-04-11 17:56:22 +02:00
Thibault Delavallée 5a402ce73a [FIX] website_forum: disable the tour as it is not implemented
and seems to make other tours crash.

bzr revid: tde@openerp.com-20140411154150-4tn3bfe7wp8n901d
2014-04-11 17:41:50 +02:00
Thibault Delavallée e51049e8ed [MERGE] Sync with upstream
bzr revid: tde@openerp.com-20140411134052-x74otuwuxoz20qab
2014-04-11 15:40:52 +02:00
Thibault Delavallée cd4afee17e [CLEAN] website_forum: cleaning before merging
- cleaned models
- cleaned controllers: lots of cleaning, rewriting, simplfiication + updated in views
- added an override of the contact widget, to be able to display partner-related
stuff about karma and badges
- some css tweaking
- badges cleaning

bzr revid: tde@openerp.com-20140411132939-bmvyc9bqpqpkk843
2014-04-11 15:29:39 +02:00
Thibault Delavallée cbac424f91 [REF] website_forum: renamed models (website.forum -> forum) + cleaned models.
Added favorite_count function field, like vote_count and so on, to be able
to have badges based on a simple model.

bzr revid: tde@openerp.com-20140410133928-i0lncz8us9wueb13
2014-04-10 15:39:28 +02:00
Turkesh Patel (Open ERP) 3b9ac48122 [ADD] added tooltip on some icons, improved string.
bzr revid: tpa@tinyerp.com-20140410104910-err7rc2efgvsxti7
2014-04-10 16:19:10 +05:30
Thibault Delavallée e834e31bd9 [FIX] website_forum: light cleaning of website_forum tour naming
bzr revid: tde@openerp.com-20140410101911-lphs30dqs00hikrt
2014-04-10 12:19:11 +02:00
Thibault Delavallée cb9bae8ba6 [IMP] website_forum: added an icon
bzr revid: tde@openerp.com-20140410101247-m4w7yga1c3kv40py
2014-04-10 12:12:47 +02:00
Thibault Delavallée 107cc33d0e [MERGE] Sync with upstram: trunk-website-forum-tpa
bzr revid: tde@openerp.com-20140410080459-b5ngtlg34dblbtyr
2014-04-10 10:04:59 +02:00
Sunil Sharma 75773982a4 [imp]:improve activity search or improve string or remove unused string
bzr revid: ssh@tinyerp.com-20140410060400-blapg8mz6kw5bvoi
2014-04-10 11:34:00 +05:30
Thibault Delavallée 1d5beb57ef [MERGE] Sync with upstram: website-forum-tpa
bzr revid: tde@openerp.com-20140409165804-q4wi76e0m0c9ovzw
2014-04-09 18:58:04 +02:00
Thibault Delavallée 4d41e36a91 [IMP] website_forum: cleaning before merging
- cleaned models, removing unnecessary fields + removed history feature of posts + removed
unnecessary override of mail.message and ir_http + renamed some fields (like badges -> badge_ids
to be more coherent with openerp naming)
- updated views accordingly
- cleaned demo data to lessen the diff

bzr revid: tde@openerp.com-20140409165059-36zc06f0to3q4qfu
2014-04-09 18:50:59 +02:00
Turkesh Patel (Open ERP) 2845ecd6ca [IMP] improved code to add link at footer to show all forums, improved serch and then filtering, dont allow user to post comment if dont have 50 karama
bzr revid: tpa@tinyerp.com-20140409120956-9yf4z2x1cxclk0f8
2014-04-09 17:39:56 +05:30
Turkesh Patel (Open ERP) 03bf0c072f [ADD] added functionality to make question favourite, and improved some code
bzr revid: tpa@tinyerp.com-20140407072032-tf6wjo51ibb95nw0
2014-04-07 12:50:32 +05:30
Sunil Sharma 2dbde6686f [imp]:View user flag
bzr revid: ssh@tinyerp.com-20140407062205-cue7qq8c2la62fn7
2014-04-07 11:52:05 +05:30
Turkesh Patel (Open ERP) 51d22836d1 [IMP] improved code to change background of answer when accepted.
bzr revid: tpa@tinyerp.com-20140404104037-lfyrfo896v9u3hnb
2014-04-04 16:10:37 +05:30
Turkesh Patel (Open ERP) b8f3135479 [IMP] improvedd code to set proper colour on voted thumb and accepted answer.
bzr revid: tpa@tinyerp.com-20140404092212-7ey70f7dywtox0zc
2014-04-04 14:52:12 +05:30
Turkesh Patel (Open ERP) 81ac1134c2 [IMP] improved css and sass file
bzr revid: tpa@tinyerp.com-20140404071855-b7gn87tmx5rc6yll
2014-04-04 12:48:55 +05:30