Skip to content
Snippets Groups Projects
  1. Mar 21, 2019
  2. Mar 15, 2019
    • sri-odoo's avatar
      [FIX] website_slides: styling fullscreen mode · 69fb136a
      sri-odoo authored
      Since the fullscreen widget has been revamped, it needed
      to be pixel perfect. This commit cleans the CSS and DOM
      structure in order to optimize and sublime it.
      
      Task-1941250
      69fb136a
  3. Mar 12, 2019
    • qmo-odoo's avatar
      [REF] website_slides: revamp fullscreen widget · fd78a408
      qmo-odoo authored
      This commit makes the 'Fullscreen' page a complete odoo
      widgets. We decided to split it into some sub widget:
      - Fullscreen: will be the master piece, handle communication of
      components, displaying slide content, setting slide as completed,
      handling server RPC calls, ....
      - Sidebar: responsible for slide navigation, based on the table of
      content. (prev, next, keyboard naviguation, ...)
      - VideoPlayer: display content for Youtube video and handling player
      event to auto set as completed, ...
      
      The DOM of this page is still rendered serverside. DOM was cleaned in
      order to be less complex and less deep. CSS style was also reviewed
      to decrease line of code.
      
      Fullscreen is now completely using Quiz widget with events triggered.
      
      Task-1942852
      fd78a408
  4. Mar 07, 2019
    • Thibault Delavallée's avatar
      [REF] website_slides: rework standard lesson page view · 20e68b32
      Thibault Delavallée authored
      
      Purpose of this commit is to perform a cleaning and upgrade of the lesson
      view in front-end when not using the fullscreen mode. This page had not
      been updated since eLearning addition.
      
      A method is added on slide model to have a protected method computing quiz
      related information on a given set of slides, notably potential karma gain,
      gained karma and number of attempts. It is mainly a code move from controllers
      now working in batch.
      
      Some linting is also done, notably a badly-named file.
      
      See original eLearning task for main specifications [1].
      
      Commit linked to task ID 1941250 and PR #31657.
      
      [1] See task ID 1902304
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      20e68b32
    • Jérome Maes's avatar
      [REF] website_slides: redesign quiz widget · 3393dd00
      Jérome Maes authored
      
      This commit makes the quiz widget a real odoo widget that triggers up some
      events. The widget is now only responsible of
      
       * fetching quiz data (if not given)
       * decorating the anwsers according to the result
       * displaying message (error or modal)
      
      To do so, some code move/rewrite was needed
      
       * extract and factorize some template
       * add 'sudo' on technical model to avoid access rights error
       * factorize some python method from controller to model
       * remove some CSS classes to lighten the code
       * fixing access model error
       * make quiz widget handle the display of error message
       * give browse record for template rendering, rather than slug
       * cleaning some spaghetti code in Fullscreen widget
       * ...
      
      Commit linked to task ID 1941250 and PR #31584.
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      3393dd00
Loading