1. 08 Apr, 2020 1 commit
  2. 17 Mar, 2019 1 commit
  3. 22 Feb, 2019 1 commit
  4. 18 Feb, 2019 1 commit
    • Jelle van der Waa's avatar
      Implement CSP for archweb · 35254589
      Jelle van der Waa authored and Jelle van der Waa's avatar Jelle van der Waa committed
      Add django-csp as dependency to be able to set CSP inside django's
      settings and allow setting a CSP_NONCE for inline <script>'s in
      templates. Since archweb heavily uses this pattern it's the best
      compromise.
      35254589
  5. 08 Apr, 2018 1 commit
  6. 29 Jan, 2018 1 commit
    • Jelle van der Waa's avatar
      More code refactoring / tests (#79) · 148692cd
      Jelle van der Waa authored
      * main: move tests to main/tests
      
      Move the templatetags tests to main/tests/test_templatetags.
      
      * main: Add test for templatetags country
      
      Create a test for the templatetag country_flag.
      
      * main: remove duplicate floatvalue
      
      floatvalue is only used in the mirrors templates and the same exact
      function exists in the mirror_status templatetags.
      
      * main: Remove duplicate hours filter
      
      The hours filter is also defined in the mirror_status and only used in
      mirrors.
      
      * main: move percentage filter to mirrors
      
      Move the percentage filter to the only user of it and add a test for
      basic use cases.
      
      * main: remove duplicate duration implementation
      
      The duration templatetag filter is also defined in mirror_status.py
      
      * templates: remove unrequired import flags
      
      * main: Add missing testcase for country_flag
      
      Add the None test case, so that the function is fully covered.
      
      * todolists: create tests for Todolist model
      
      Add basic tests for the Todolist model
      148692cd
  7. 28 Dec, 2017 1 commit
  8. 02 May, 2017 1 commit
  9. 08 Nov, 2014 2 commits
  10. 01 Sep, 2014 1 commit
  11. 29 Mar, 2014 1 commit
  12. 19 Dec, 2013 1 commit
  13. 15 Dec, 2013 1 commit
  14. 14 Dec, 2013 2 commits
  15. 27 Nov, 2013 1 commit
    • Dan McGee's avatar
      Stop using Django-provided floatformat template tag · 9adc2e53
      Dan McGee authored
      
      
      It turns out this is a HUGE part of our slow mirror status template
      rendering, due to the internal workings. Everything is converted to a
      Python decimal object which is way slower than just staying in native
      floating point. Given we are always dealing with floats when we need to
      do our formatting, a home-rolled template tag can accomplish this much
      faster.
      
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      9adc2e53
  16. 07 Nov, 2013 1 commit
  17. 13 Jul, 2013 1 commit
  18. 22 May, 2013 1 commit
  19. 10 May, 2013 1 commit
    • Dan McGee's avatar
      Add mirror error logs to mirror details page · 8097a1fd
      Dan McGee authored
      
      
      Give a window of 7 days for logs here rather than the default 24 hours
      we do on the main status page since we are only retrieving details for a
      single mirror with a handful of URLs. This should make it easier to have
      all information regarding one mirror in a single location.
      
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      8097a1fd
  20. 20 Apr, 2013 1 commit
  21. 14 Apr, 2013 2 commits
  22. 09 Feb, 2013 1 commit
  23. 16 Jan, 2013 1 commit
  24. 14 Jan, 2013 1 commit
  25. 27 Dec, 2012 1 commit
  26. 13 Nov, 2012 1 commit
  27. 10 Nov, 2012 1 commit
  28. 09 Jul, 2012 1 commit
  29. 26 Apr, 2012 1 commit
  30. 25 Apr, 2012 3 commits
  31. 24 Mar, 2012 1 commit
  32. 06 Dec, 2011 1 commit
    • Dan McGee's avatar
      Convert to and enable staticfiles contrib application · 943ef2e8
      Dan McGee authored
      
      
      This moves our site static files into the sitestatic directory if they
      are shared resources, and also moves a handful of things (such as the
      artwork logos) into application-specific static/ directories. This
      allows the staticfiles contrib app to work after a few settings tweaks,
      a run of collectstatic, and massaging the hardcoded '/media/' prefix out
      of our templates.
      
      Django 1.4 is going to make this a lot easier to move things to a CDN
      and provides better template tags; for now this is setting the stage
      before we can move to that.
      
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      943ef2e8
  33. 17 Aug, 2011 1 commit
  34. 29 Mar, 2011 1 commit
  35. 28 Mar, 2011 1 commit