patch-Mailman_htmlformat_py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. $OpenBSD: patch-Mailman_htmlformat_py,v 1.8 2016/09/06 13:44:22 okan Exp $
  2. --- Mailman/htmlformat.py.orig Sat Aug 27 09:04:42 2016
  3. +++ Mailman/htmlformat.py Thu Sep 1 11:24:12 2016
  4. @@ -633,12 +633,14 @@ class DefinitionList(Container):
  5. from mm_cfg import MAILMAN_URL
  6. PYTHON_URL = 'http://www.python.org/'
  7. GNU_URL = 'http://www.gnu.org/'
  8. +OBSD_URL = 'http://www.openbsd.org/'
  9. # The names of the image logo files. These are concatentated onto
  10. # mm_cfg.IMAGE_LOGOS (not urljoined).
  11. DELIVERED_BY = 'mailman.jpg'
  12. PYTHON_POWERED = 'PythonPowered.png'
  13. GNU_HEAD = 'gnu-head-tiny.jpg'
  14. +OBSD_HEAD = 'openbsd_pb.gif'
  15. def MailmanLogo():
  16. @@ -652,7 +654,9 @@ def MailmanLogo():
  17. logo(PYTHON_POWERED)
  18. gnulink = '<img src="%s" alt="GNU\'s Not Unix" border=0>' % \
  19. logo(GNU_HEAD)
  20. - t.AddRow([mmlink, pylink, gnulink])
  21. + obsdlink = '<img src="%s" alt="Powered by OpenBSD" border=0>' % \
  22. + logo(OBSD_HEAD)
  23. + t.AddRow([mmlink, pylink, gnulink, obsdlink])
  24. else:
  25. # use only textual links
  26. version = mm_cfg.VERSION
  27. @@ -660,7 +664,8 @@ def MailmanLogo():
  28. _('Delivered by Mailman<br>version %(version)s'))
  29. pylink = Link(PYTHON_URL, _('Python Powered'))
  30. gnulink = Link(GNU_URL, _("Gnu's Not Unix"))
  31. - t.AddRow([mmlink, pylink, gnulink])
  32. + obsdlink = Link(OBSD_URL, 'Powered by OpenBSD')
  33. + t.AddRow([mmlink, pylink, gnulink, obsdlink])
  34. return t