Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard: add link as "app" #1557

Closed
sjpb opened this issue Nov 3, 2021 · 3 comments
Closed

Dashboard: add link as "app" #1557

sjpb opened this issue Nov 3, 2021 · 3 comments
Milestone

Comments

@sjpb
Copy link

sjpb commented Nov 3, 2021

Is there any simple way to just add links as an "app" in the dashboard? Like the Jobs dropdown below I'd love to "just" add a new dropdown to the top bar, containing a couple of links.

image

@osc-bot osc-bot added this to the Backlog milestone Nov 3, 2021
@johrstrom
Copy link
Contributor

Just drop a new app's manifest in the right location and you'll get the app. I pulled this manifest from how we deploy activejobs: https://github.com/OSC/ondemand/blob/34ca9c5db5877c3bd6a7bb8d8ced013e7fb30ca7/apps/activejobs/manifest.yml

/var/www/ood/apps/sys/<NEW APP>/manifest.yml

---
name: The New Link
category: Jobs
description: |-
  The new link you want to add
icon: fa://clock-o
url: 'https://github.com/osc/ondemand'
new_window: false

@johrstrom johrstrom added the help label Nov 3, 2021
@johrstrom
Copy link
Contributor

Oh, two more things. The category, here is Jobs meaning it'll create a new navbar dropdown menu.

See the docs here for how to control which app categories appear.

https://osc.github.io/ood-documentation/latest/customization.html?highlight=navbar#control-which-apps-appear-in-the-dashboard-navbar

The second piece is that every 'app' here is a link. So create as many manifest.yml "apps" (they're not really apps, but OnDemand is treating them like one) as you need links.

@sjpb
Copy link
Author

sjpb commented Nov 4, 2021

Awesome, thank you! Now Grafana is reverse proxied by OOD, getting to it is really easy:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants