diff options
| author | Jeremy Kersten <jke@odoo.com> | 2019-01-23 16:34:47 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-01-23 17:03:04 +0000 |
| commit | 7805c55b0c9db68ba13517af365ed94b0f04f1e0 (patch) | |
| tree | 8cd25056db68c30167aea13c9a8022b3fcbcbbb5 /addons/website_forum/controllers | |
| parent | fe62c45e70be52c823ec2d2a931b6e2979882368 (diff) | |
[FIX] website_forum: small ui fix
Force image to stay in their container (img_fluid could be removed by end user)
Stop to use row_users
now that we use bs4,
allow to be more responsive,
force height to be the same for each card.
Small imp replacing multiple if by elif
Decrease big margin between questions
Place tag on the top (if you have many tag, or very long, the ui is broken)
Diffstat (limited to 'addons/website_forum/controllers')
| -rw-r--r-- | addons/website_forum/controllers/main.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 42b1e892fcc..c23a2652b7f 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -564,11 +564,8 @@ class WebsiteForum(http.Controller): if searches.get('user'): dom += [('name', 'ilike', searches.get('user'))] - user_obj = User.sudo().search(dom, limit=step, offset=pager['offset'], order='karma DESC') - # put the users in block of 3 to display them as a table - users = [[] for i in range(len(user_obj) // 3 + 1)] - for index, user in enumerate(user_obj): - users[index // 3].append(user) + users = User.sudo().search(dom, limit=step, offset=pager['offset'], order='karma DESC') + searches['users'] = 'True' values = self._prepare_forum_values(forum=forum, searches=searches) values .update({ |
