Giter Club home page Giter Club logo

Comments (11)

jhamman avatar jhamman commented on June 28, 2024

Yes, we should fix this. I'm not sure why this isn't working. I think this page should be inhereting from the 'page.html' but something does seem to be broken.

https://github.com/pangeo-data/pangeo-custom-binderhub-templates/blob/0216d32700742c5c31204fd8be0198f25eba10d2/templates/page.html#L18-L28

I'd bet @dsludwig knows what's up here.

from pangeo-binder.

rabernat avatar rabernat commented on June 28, 2024

If anyone wants to fix this in the next 10 minutes that would be great. 😜

from pangeo-binder.

minrk avatar minrk commented on June 28, 2024

It's due to the url prefix being a relative URL, which evaluates differently on different pages. #16 should fix it.

from pangeo-binder.

jhamman avatar jhamman commented on June 28, 2024

Hmmm, this still seems to be a problem. Will look into it more.

from pangeo-binder.

andersy005 avatar andersy005 commented on June 28, 2024

This appears to be now fixed.

from pangeo-binder.

jhamman avatar jhamman commented on June 28, 2024

I'm still seeing:
image

from pangeo-binder.

andersy005 avatar andersy005 commented on June 28, 2024

You are right. I was looking at the wrong page

from pangeo-binder.

rabernat avatar rabernat commented on June 28, 2024

This is the URL we are looking for. It exists
https://binder.pangeo.io/extra_static/pangeo_simple_logo.svg

The logo link is rending as

<img id="logo" src="extra_static/pangeo_simple_logo.svg" width="390px"  />

with a relative, rather than absolute, URL.

The problem is with these lines:

template:
path: "/etc/binderhub/templates/templates"
static:
path: "/etc/binderhub/templates/static"
urlPrefix: /extra_static/

@minrk added the extra / to url prefix. But it didn't work. Does it need to be in quotes perhaps?

from pangeo-binder.

jhamman avatar jhamman commented on June 28, 2024

@rabernat - I just tried with your attempt -- no joy!. Now the image is coming from: https://staging.binder.pangeo.io/v2/gh/jhamman/dask-examples/extra_static/pangeo_simple_logo.svg

So we need to strip out the repo info: https://staging.binder.pangeo.io/extra_static/pangeo_simple_logo.svg

from pangeo-binder.

bitnik avatar bitnik commented on June 28, 2024

@jhamman @rabernat I think the problem is in page.html: https://github.com/pangeo-data/pangeo-custom-binderhub-templates/blob/master/templates/page.html#L22

Leading / is missing. It should be like:

        <img id="logo" src={% block logo_image %}"/extra_static/pangeo_simple_logo.svg"{% endblock logo_image %} width="390px"  />

pangeo-data/pangeo-custom-binderhub-templates#2 didn't fix the logo in loading page because loading page uses loading.html not index.html.

I would also delete logo_image block in index.html (https://github.com/pangeo-data/pangeo-custom-binderhub-templates/blob/master/templates/index.html#L10), since index.html is extending page.html and they have the same logo.

from pangeo-binder.

jhamman avatar jhamman commented on June 28, 2024

Thanks @bitnik. That gets us closer. Any idea why the change in pangeo-data/pangeo-custom-binderhub-templates@17bfade would cause the page header css to be stripped out?

image

from pangeo-binder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.