| |
@@ -29,6 +29,7 @@
|
| |
import werkzeug
|
| |
from functools import wraps
|
| |
from sqlalchemy.exc import SQLAlchemyError
|
| |
+ from flask import Markup
|
| |
|
| |
from pygments import highlight
|
| |
from pygments.lexers.text import DiffLexer
|
| |
@@ -390,8 +391,9 @@
|
| |
return flask.redirect(
|
| |
flask.url_for('auth_login', next=flask.request.url))
|
| |
elif auth_method == 'fas' and not flask.g.fas_user.cla_done:
|
| |
- flask.flash('You must sign the FPCA (Fedora Project Contributor '
|
| |
- 'Agreement) to use pagure', 'errors')
|
| |
+ flask.flash(Markup('You must <a href="https://admin.fedoraproject'
|
| |
+ '.org/accounts/">sign the FPCA</a> (Fedora Project '
|
| |
+ 'Contributor Agreement) to use pagure'), 'errors')
|
| |
return flask.redirect(flask.url_for('.index'))
|
| |
return function(*args, **kwargs)
|
| |
return decorated_function
|
| |
To address bug #1997 (https://pagure.io/pagure/issue/1997)
Added a link to the error message "You must sign the FPCA (Fedora Project Contributor Agreement) to use pagure"
The link points to the FAS page where the FPCA can be signed.