Skip to content

Commit

Permalink
ec style fixes (#132)
Browse files Browse the repository at this point in the history
* Fix admin menu

* Fix the 40x errors

* Improved spacing

* Do not depend on external image
  • Loading branch information
enolfc authored Sep 13, 2024
1 parent d56dd6b commit 999cef7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 56 deletions.
33 changes: 1 addition & 32 deletions ec-templates/401.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,2 @@
<!-- htmlhint doctype-first:false -->
{% extends "error.html" %}
{% block main %}
<div class="error">
<h1>Unauthorized!</h1>
<p>
You are trying to access a restricted instance of the EGI Notebooks service.
</p>
<p>
Access requires a valid
<a href="https://docs.egi.eu/users/check-in/signup">EGI account</a>
and membership of one of the supported VOs.
</p>
<p>
If you think you should be granted access already, please open an issue in
<a href="https://ggus.eu">GGUS</a>
</p>
<p>
See
<a
href="https://docs.egi.eu/users/dev-env/notebooks/#notebooks-for-researchers/"
>
Documentation related to EGI Notebooks</a
>
about granting access. You can also
<a href="https://marketplace.eosc-portal.eu/services/egi-notebooks"
>place an order in EOSC portal</a
>
for the Notebooks service if you are interested in your own community
deployment.
</p>
</div>
{% endblock %}
{% extends "403.html" %}
28 changes: 6 additions & 22 deletions ec-templates/403.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
<!-- htmlhint doctype-first:false -->
{% extends "error.html" %}

{% block main %}
<div class="error">
<div class="ecl-container ecl-u-mv-xl error">
<h1>Unauthorized!</h1>
<p>
You are trying to access a restricted instance of the EGI Notebooks service.
</p>
<p>
Access requires a valid
<a href="https://docs.egi.eu/users/check-in/signup">EGI account</a>
and membership of one of the supported VOs.
Access to European Open Science Cloud - EU Node Interactive Notebooks is
restricted to allowed users, please check your permissions at your
<a href="https://open-science-cloud.ec.europa.eu/">EU Node profile</a>
</p>
<p>
If you think you should be granted access already, please open an issue in
<a href="https://ggus.eu">GGUS</a>
</p>
<p>
See
<a
href="https://docs.egi.eu/users/dev-env/notebooks/#notebooks-for-researchers/"
>
Documentation related to EGI Notebooks</a
>
about granting access. You can also
<a href="https://marketplace.eosc-portal.eu/services/egi-notebooks"
>place an order in EOSC portal</a
<a href="https://open-science-cloud.ec.europa.eu/support/helpdesk"
>the Helpdesk</a
>
for the Notebooks service if you are interested in your own community
deployment.
</p>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion ec-templates/egi-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<picture class="ecl-picture ecl-banner__picture"
><img
class="ecl-banner__image"
src="https://open-science-cloud.ec.europa.eu/sites/default/files/styles/oe_theme_full_width/public/2024-04/EOSC-Visuals-Interactive-Notebooks-blue-2_0.jpg?itok=_FZmE9a9"
src="{{ static_url('images/EOSC-Visuals-Interactive-Notebooks-blue-2.jpg') }}"
alt="Interactive notebooks"
/></picture>
<div class="ecl-container">
Expand Down
3 changes: 2 additions & 1 deletion ec-templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
>Token</a
>
</li>
{% if 'admin-ui' in parsed_scopes %} {% endif %}
{% if 'admin-ui' in parsed_scopes %}
<li
class="ecl-mega-menu__item"
data-ecl-mega-menu-item
Expand All @@ -250,6 +250,7 @@
>
</li>
{% endif %}
{% endif %}
</ul>
</section>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 999cef7

Please sign in to comment.