SciPost Code Repository

Skip to content
Snippets Groups Projects
  1. Sep 27, 2020
  2. Sep 26, 2020
  3. Sep 21, 2019
  4. Jan 08, 2019
  5. Mar 25, 2018
  6. Sep 25, 2017
  7. Aug 18, 2017
  8. Jul 29, 2017
  9. Jul 28, 2017
  10. Apr 12, 2017
  11. Mar 27, 2017
  12. Mar 26, 2017
  13. Mar 25, 2017
    • Jorran de Wit's avatar
      Major template overhaul... · ab25a419
      Jorran de Wit authored
      This commit contains the removal of html from 'the important' models
       or at least contains replacements for model methods such as `print_as...()`,
       etc. etc. Except for `header_as_li`, methods are not completely deleted yet.
      
      > Fixed/Improved the nested comments and comments in reports. They were
       not shown before.
      
      > Improved DRY principle in several templates/codes.
      
      > Created Managers in the `submissions` app to filter i.e. "pool" submissions
       (so exclude potential author from judging on his own publication) for the
       pool view in the query; not in the template!
      
      > More...
      ab25a419
  14. Feb 15, 2017
  15. Feb 14, 2017
  16. Feb 12, 2017
  17. Feb 01, 2017
  18. Jan 15, 2017
    • Geert Kapteijns's avatar
      Extract ThesisLink#header_as_table to partial template · 419a19c6
      Geert Kapteijns authored
      Markup logic should be in templates, not in model layer.
      
      Partial template is named _header_as_table to signal
      that it is ment to be included into other templates
      (analogous to the private method naming convention.)
      The full text of several of the thesis link's fields
      (domain, subject_area, etc.) are fetched from constant dicts
      in custom filters defined in theses.templatetags.theses_extras.
      419a19c6
  19. Dec 19, 2016
  20. Dec 14, 2016
    • Geert Kapteijns's avatar
      Set blank=False on domain field of ThesisLink · de1087c0
      Geert Kapteijns authored
      A blank domain throws an error in /theses/.
      I've also installed factory_boy (pip install -r requirements.txt
      to get it) and set up a ThesisLinkFactory and a unit tests that
      tests whether ThesisLink validates for a blank domain field.
      
      Not sure if this is exactly how you're supposed to validate
      a model, but it's a start. First unit test of the project, whoohoo!
      de1087c0
    • Geert Kapteijns's avatar
      Define THESIS_TYPES in ThesisLink model itself · 9b7fbbd5
      Geert Kapteijns authored
      This is recommended. Also give names like
      MASTER_THESIS = 'MA' to avoid magic strings and allow for easy
      reference, e.g. thesis.type = ThesisLink.MASTER_THESIS. This sort
      of thing helps in maintainability of the codebase, since if we want
      to change the abbreviation to 'MASTER' for some reason, we have it
      defined in one place, and not in 100 places in the code.
      9b7fbbd5
    • Geert Kapteijns's avatar
      Make PEP8 improvements · 9f505220
      Geert Kapteijns authored
      9f505220
  21. Dec 12, 2016
  22. Nov 26, 2016
  23. Nov 25, 2016
  24. Aug 11, 2016
  25. May 29, 2016
  26. Apr 22, 2016
  27. Apr 17, 2016
  28. Apr 15, 2016
  29. Apr 12, 2016
  30. Apr 01, 2016
  31. Mar 28, 2016
  32. Mar 26, 2016
  33. Mar 20, 2016
  34. Mar 19, 2016
  35. Feb 27, 2016
Loading