Skip to content

Add edit and IDE links to highlight-tooltip

What does this MR do?

This adds an "Edit" and "Web IDE" link to the highlight-tooltip. They are the same as the links in the footer.

See #6370 (closed) for details.

Implementation Notes

Getting data for link into Javascript

Add data.site.repo and data.site.instance (same as in footer.html.haml) to head of pages as meta tags in meta.html.haml, just like data.site.title already is.

Then use document.querySelector('meta[property="og:repo"]').content to retrieve it from javascript.

Related issues

Closes #6370 (closed) Related #6371

/label ~"group::static site editor" feature

Edited by Chad Woolley

Merge request reports