diff --git a/roles/ipsilon/files/templates-new/index.html b/roles/ipsilon/files/templates-new/index.html new file mode 100644 index 0000000000..d217b7a6c9 --- /dev/null +++ b/roles/ipsilon/files/templates-new/index.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} +{% block toptext %} +This is the Federated Open Authentication provider homepage. +{% endblock %} +{% block main %} +You will be redirected to this application whenever another application requires you to authenticate. +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/internalerror.html b/roles/ipsilon/files/templates-new/internalerror.html new file mode 100644 index 0000000000..055e903062 --- /dev/null +++ b/roles/ipsilon/files/templates-new/internalerror.html @@ -0,0 +1,15 @@ +{% extends "layout.html" %} +{% block toptext %} +500 - Internal Server Error +{% endblock %} +{% block main %} + {% if message: %} +
{{ message }}
+ {% else %} +Ipsilon encountered an unexpected internal error while trying to + fulfill your request.
+ {% endif %} +Please retry again.
+If the error persists, contact the server administrator to resolve + the problem.
+{% endblock %} diff --git a/roles/ipsilon/files/templates-new/layout.html b/roles/ipsilon/files/templates-new/layout.html new file mode 100644 index 0000000000..837ccb152d --- /dev/null +++ b/roles/ipsilon/files/templates-new/layout.html @@ -0,0 +1,63 @@ + + + + ++ {{ login_target }} wants to use your Fedora Account System (FAS) credentials +
+{% endblock %} +{% if error %}{{error}}
{% endif %} +{% block cardwidths %}col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2{% endblock %} +{% block maintitle %} + login with FAS +{% endblock %} +{% block main %} + +{% endblock %} + diff --git a/roles/ipsilon/files/templates-new/login/index.html b/roles/ipsilon/files/templates-new/login/index.html new file mode 100644 index 0000000000..14ec837d8d --- /dev/null +++ b/roles/ipsilon/files/templates-new/login/index.html @@ -0,0 +1,11 @@ +{% extends "layout.html" %} +{% block title %}Login{% endblock %} +{% block toptext %} +{{ login_target }} is asking to authenticate using Ipsilon +{% endblock %} +{% block main %} +Something prevented a successful logout
+You are still logged in as {{ user.fullname }}
+{% else %} +Successfully logged out.
+Return to Home page
+{% endif %} +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/notfound.html b/roles/ipsilon/files/templates-new/notfound.html new file mode 100644 index 0000000000..38203cb0ed --- /dev/null +++ b/roles/ipsilon/files/templates-new/notfound.html @@ -0,0 +1,13 @@ +{% extends "layout.html" %} +{% block toptext %} +404 - Not Found +{% endblock %} +{% block main %} + {% if message: %} +{{ message }}
+ {% else %} +This page does not exist.
+ {% endif %} +If you think this is an error, contact the server administrator to resolve + the problem.
+{% endblock %} diff --git a/roles/ipsilon/files/templates-new/openid/consent_form.html b/roles/ipsilon/files/templates-new/openid/consent_form.html new file mode 100644 index 0000000000..afa9011fef --- /dev/null +++ b/roles/ipsilon/files/templates-new/openid/consent_form.html @@ -0,0 +1,37 @@ +{% extends "layout.html" %} +{% block toptext %} +{{trustroot}} requests to use the following details from your FAS Account
+{% endblock %} +{% block cardwidths %}col-md-10 col-md-offset-1{% endblock %} +{% block maintitle %}Review the authorization details{% endblock %} +{% block main %} +{{ message }}
+ {% else %} +Authentication was not succesful
+ {% endif %} + +{% endblock %} diff --git a/roles/ipsilon/tasks/main.yml b/roles/ipsilon/tasks/main.yml index ade68e4e7d..82bbd9bafd 100644 --- a/roles/ipsilon/tasks/main.yml +++ b/roles/ipsilon/tasks/main.yml @@ -33,6 +33,13 @@ copy: src=templates/ dest=/usr/share/ipsilon/templates-fedora owner=ipsilon group=ipsilon mode=0666 + when: env != "staging" + +- name: copy STAGING ipsilon templates + copy: src=templates-new/ + dest=/usr/share/ipsilon/templates-fedora + owner=ipsilon group=ipsilon mode=0666 + when: env == "staging" - name: copy ipsilon ui assets copy: src=ui-fedora/