Be a bit more specific about CLA in /home
This commit is contained in:
parent
6470fd2682
commit
eddc5ab0a7
3 changed files with 7 additions and 2 deletions
|
@ -78,9 +78,11 @@ class Root(controllers.RootController):
|
|||
user_name = turbogears.identity.current.user_name
|
||||
person = People.by_username(user_name)
|
||||
cla = None
|
||||
cla = None
|
||||
if clickedCLAPrivs(person):
|
||||
cla = 'clicked'
|
||||
if signedCLAPrivs(person):
|
||||
cla = 'signed'
|
||||
|
||||
return dict(person=person, cla=cla)
|
||||
|
||||
@expose(template="fas.templates.about")
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
</dl>
|
||||
</py:for>
|
||||
<ul class="queue">
|
||||
<span py:if="cla == 'clicked'" class="approved">${_('Click-through CLA')}<py:if test="personal"> (<a href="${tg.url('/cla/')}">${_('GPG Sign it!')}</a></py:if>)</span>
|
||||
<span py:if="not cla" class="unapproved">${_('Not Done')}<py:if test="personal"> (<a href="${tg.url('/cla/')}">${_('Sign it!')}</a>)</py:if></span>
|
||||
|
||||
<li py:if="cla == None">
|
||||
${_('CLA Not Signed. To become a full Fedora Contributor please ')}<a href="${tg.url('/cla/')}">${_('sign the CLA')}</a>.
|
||||
</li>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<script type="text/javascript">var hb1 = new HelpBalloon({dataURL: '${tg.url('/help/get_help/user_account_status')}'});</script></dd>
|
||||
<dt>${_('CLA:')}</dt><dd>
|
||||
<span py:if="cla == 'signed'" class="approved">${_('Signed CLA')}</span>
|
||||
<span py:if="cla == 'clicked'" class="approved">${_('Click-through CLA')}<py:if test="personal">(<a href="${tg.url('/cla/')}">${_('GPG Sign it!')}</a></py:if>)</span>
|
||||
<span py:if="cla == 'clicked'" class="approved">${_('Click-through CLA')}<py:if test="personal"> (<a href="${tg.url('/cla/')}">${_('GPG Sign it!')}</a></py:if>)</span>
|
||||
<span py:if="not cla" class="unapproved">${_('Not Done')}<py:if test="personal"> (<a href="${tg.url('/cla/')}">${_('Sign it!')}</a>)</py:if></span>
|
||||
<script type="text/javascript">var hb2 = new HelpBalloon({dataURL: '${tg.url('/help/get_help/user_cla')}'});</script></dd>
|
||||
</dl>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue