Skip to content
Snippets Groups Projects
  1. Mar 03, 2025
  2. Feb 20, 2025
  3. Feb 18, 2025
  4. Feb 12, 2025
    • Antoine Lambert's avatar
      browse: Fix redirect issue in search interface · 7ceba5a5
      Antoine Lambert authored
      When searching for an origin URL, the search interface redirects
      to its browse interface if the origin URL exists in SWH database.
      
      Nevertheless, it the origin could not be archived, the redirection
      was still done leading to a 404 error so ensure to check the origin
      has a snapshot before redirecting.
      
      Fixes #4828.
      7ceba5a5
  5. Dec 18, 2024
  6. Oct 22, 2024
  7. Oct 01, 2024
    • Antoine Lambert's avatar
      assets: Upgrade Bootstrap from 4.6 to 5.3 and AdminLTE from 3.2 to 4.0 · 809eba7a
      Antoine Lambert authored
      The bootstrap admin theme we are using (AdminLTE) recently added support for
      bootstrap 5.x in its 4.0 release (still in beta but works for our needs).
      
      So it was time to upgrade bootstrap from 4.x to 5.x for the SWH webapp.
      
      The following was made to complete the upgrade while keeping same look and
      feel as before:
      
      - remove use of bootstrap loader for webpack and simplify webpack configuration
      
      - replace use of deprecated node-sass package by sass one from Dart
      
      - update bootstrap sass variables to override and add button style matching the
        default one from AdminLTE 3.x we were using
      
      - adapt some CSS rules and add new ones to ensure same look and feel as before
      
      - remove explicit use of custom form controls from bootstrap 4.x as they are now
        the standard in bootstrap 5.x through new CSS classes form-*
      
      - update CSS classes renamed in bootstrap 5.x and adminlte 4.x, notably:
      
        * wrapper => app-wrapper
        * main-header => app-header
        * content => app-content
        * sidebar => app-sidebar
        * footer => app-footer
        * ml-* => ms-*
        * mr-* => me-*
        * pl-* => ps-*
        * pr-* => pe-*
        * float-left => float-end
        * float-right => float-start
        * text-left => text-start
        * text-right => text-end
      
      - rename some data-* attributes to data-bs-*
      
      - use btn-secondary CSS class for button style instead of btn-default
      
      - use standard bootstrap close button for modals and alerts
      
      - put sidebar HTML code in its own dedicated include file
      
      - simplify forms HTML code and use new form-label CSS class
      
      - remove no longer needed javascript hacks
      
      - improve color theme consistency notably when focusing elements with keyboard
      809eba7a
  8. Jul 08, 2024
  9. Jun 06, 2024
  10. Apr 26, 2024
  11. Apr 10, 2024
  12. Mar 22, 2024
    • Antoine Lambert's avatar
      browse/search: Handle visit type when search pattern is an origin URL · 4ce23c9a
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      When searching for origins with the Web UI, if the search pattern is equal
      to the URL of an archived origin then user gets automatically redirected to
      the interface for browsing it.
      
      Previously the visit type was not taken into account prior performing the
      redirection so ensure to redirect only if the origin has a visit type
      that matches the selected one.
      4ce23c9a
  13. Mar 01, 2024
  14. Feb 21, 2024
  15. Jan 08, 2024
  16. Jan 05, 2024
  17. Dec 14, 2023
  18. Nov 20, 2023
  19. Nov 10, 2023
  20. May 23, 2023
  21. Apr 05, 2023
  22. Feb 20, 2023
  23. Sep 07, 2022
    • Antoine Lambert's avatar
      Move static assets source code in related django application folders · c52158a8
      Antoine Lambert authored
      For each swh-web django application, create an assets folder in application
      one and move related static assets source code (js, css, ...) in it.
      
      Also modify webpack configuration to generate bundles the following way:
      
        - if swh/web/<app>/assets/index.js exists, a bundle named <app> is generated
      
        - if swh/web/<app>/assets/<bundle>/index.js exists, a bundle named <bundle>
          is generated
      
      After these changes, some bundles got renamed but also new ones are generated
      so update django templates and js code accordingly.
      
      Related to T4398
      c52158a8
  24. Sep 01, 2022
  25. Aug 30, 2022
  26. Aug 23, 2022
  27. Aug 18, 2022
  28. Aug 17, 2022
  29. Aug 10, 2022
  30. Aug 04, 2022
  31. Jul 21, 2022
    • Antoine Lambert's avatar
      templates/layout: Prevent flashing of collapsed sidebar on page load · d6415206
      Antoine Lambert authored
      When sidebar is in collpased mode, it was previously flashing from expanded
      to collapsed when loading a page as its state was changed using javascript.
      
      So prefer to use a cookie describing sidebar state that can be read server
      side from django and injected in templates, this way the sidebar is ensured
      to be in correct state in HTML code on page load.
      d6415206
Loading