https://github.com/geoscienceaustralia/dea-sandbox-templates

Templates for styling web pages for dea-sandbox

https://github.com/geoscienceaustralia/dea-sandbox-templates

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Templates for styling web pages for dea-sandbox

Basic Info
  • Host: GitHub
  • Owner: GeoscienceAustralia
  • Language: HTML
  • Default Branch: master
  • Size: 83 KB
Statistics
  • Stars: 1
  • Watchers: 23
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created about 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

JupyterHub Templates

This repository contains templates used for JupyterHub. * templates contains customized templates

Note: By default, JupyterHub already has these files in /usr/local/share/jupyterhub/templates

Template Variables

templatevars can be set https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/main/jupyterhub/values.yaml#L118

The templates extends from all templates in https://github.com/jupyterhub/jupyterhub/tree/main/share/jupyterhub/templates

Our templates supports the following template variables

templatevars|type :-----|:----- colortheme|string htmltitle|string announcementpdf|http url to a file feedbackendpoint|http url loginerror|error message domainname|full domain name without protocol like http:// or https:// for jupyterhub

Customised Errors

The custom/error.html is extending https://github.com/jupyterhub/jupyterhub/blob/master/share/jupyterhub/templates/error.html

the Structure of the template is ```python {% block h1error %} {% endblock h1error %}

{% block errordetail %} {% endblock errordetail %} `` use{{ super() }}to inherit original message, or leave it out to completely override the{% block %}`.

404

template code snippet

Sandbox error html render

html <div class="error"> <h1> 404 : Not Found </h1> <p>Jupyter has lots of moons, but this is not one...</p> </div>

403

401

template code snippet

python {% elif status_code == 401 %} <p> Session has expired: Please <a href="https://{{ domain_name }}/hub/logout">login</a> again. </p>

Sandbox error html render

html <div class="error"> <h1>401 : Unauthorized</h1> <p>Session has expired: Please <a href="https://sandbox.dev.dea.ga.gov.au/hub/logout">login</a> again.</p> </div>

400

500

Owner

  • Name: Geoscience Australia
  • Login: GeoscienceAustralia
  • Kind: organization
  • Location: Canberra, Australia