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

Show browsable code with SWH iframe #31

Open
moranegg opened this issue May 17, 2024 · 0 comments
Open

Show browsable code with SWH iframe #31

moranegg opened this issue May 17, 2024 · 0 comments

Comments

@moranegg
Copy link

Problem

Preview of software is not browsable even when SWHID is available

Solution

  • When SWHID is available, show iframe
  • Under the possibility to download file, show browsable source code using the SWH iframe.

example:

<iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"
        src="https://webapp.staging.swh.network/browse/embed/swh:1:dir:40614bb9479925c9ca7fd22f02e4d9a34fa73026;origin=https://sandbox.zenodo.org/d5246ebd-04a9-49b2-b8dc-f0fd0aebfcbd;visit=swh:1:snp:9e7f4e90dc0da1120f1c6df5c9e5b6f0e3cbd836;anchor=swh:1:rel:016efb54a4fdfe6a7b5f89276967dfac1d5e8018/">
</iframe>

Alternatives

It's a very nice to have.

Additional context

It will be so cool to browse the code on the InvenioRDM record.
Also relevant when reviewing deposits in communities.

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

1 participant