[Tracker-discuss] [issue461] Add note about the contributor agreement on the tracker

Ezio Melotti metatracker at psf.upfronthosting.co.za
Sat Feb 15 09:30:52 CET 2014


Ezio Melotti added the comment:

Here is a new patch that shows the note only in the issue page and only if the user has submitted patches for that issue and hasn't signed the contributor agreement.  I also moved the note after the patch list, and changed the background color (see attached screenshot).

----------
status: chatting -> in-progress

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue461>
_______________________________________________________
-------------- next part --------------
diff --git a/html/issue.item.html b/html/issue.item.html
--- a/html/issue.item.html
+++ b/html/issue.item.html
@@ -273,6 +273,16 @@
  </tr>
 </table>
 
+<p tal:condition="python: context.id and not request.user.contrib_form and
+                  any(file.creator.id == request.user.id for file in context.files)"
+   id="contribform">
+    In order to accept your patches, core developers have to verify that you
+    have signed a contributor agreement.<br>
+    If you haven't done so yet, please <a href="http://www.python.org/psf/contrib/contrib-form/">
+    fill the contributor agreement form</a>.<br>
+    (Note that it might take a few days before your tracker profile is updated;
+     once it's done your name will have a * next to it.)</p>
+
 <table class="files" tal:condition="context/hgrepos">
  <tr><th class="Header" colspan="4">Repositories containing patches</th></tr>
  <tr tal:repeat="hgrepo python:context.hgrepos.sorted('creation')">
diff --git a/html/style.css b/html/style.css
--- a/html/style.css
+++ b/html/style.css
@@ -507,6 +507,13 @@
   font-size: 90%;
 }
 
+p#contribform {
+    border: 1px solid #000000;
+    padding: .5em;
+    color: #000000;
+    background-color: #eee;
+}
+
 .calendar_display {
   text-align: center;
 }


More information about the Tracker-discuss mailing list