iop-alliance / okh-search

A self-hostable, federated search for open source hardware
https://search.openknowhow.org
MIT License
10 stars 9 forks source link

Manifest link? #37

Open julianstirling opened 4 years ago

julianstirling commented 4 years ago

There is some desire to see which manifest generated the cards. I suppose seeing as okh-search doesn't use all manifest information this could be a nice stop-gap feature for someone who really wants more information.

It could look something like this:

image

@kasbah how easy is this?

I tried to put the link in the card but the card is a link and it didn't like nested links.

In the end I added a <div> around the card moved the style="margin:20px" to the div rather than the card. Then inside the <div> under the card added

<div class="manifestlink" style="font-size: 9pt;float: right;">
  <a href="Link/to/manifest.yaml">View Manifest</a>
</div>

It was a horrible hack in the browser dev tools and somehow it killed the image of the card!?

kasbah commented 4 years ago

Looks good to me, yeah. Will take a look when I have a moment. (Unless someone else gets there first.)