Skip to content

Commit

Permalink
Merge pull request #525 from IIIF/issue-502
Browse files Browse the repository at this point in the history
First try for adding colour to the table
  • Loading branch information
glenrobson authored Aug 9, 2024
2 parents 7c21105 + 62aa5b7 commit c14ec01
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
Binary file added assets/images/icons/no.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/optional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/partial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/yes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ code {

.viewer td {
border: none !important;
text-align: center !important;
}

.scrolling-header {
Expand Down
16 changes: 10 additions & 6 deletions recipe/matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Currently [Mirador 3](https://projectmirador.org/), the [Universal Viewer](https

## Viewer Matrix

The possible values for viewer support are YES, NO or Partial. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect.
The possible values for viewer support are Yes - ![Yes][YES]{:title="Yes"}, No - ![No][NO]{:title="No"} or Partial - ![Partial][PARTIAL]{:title="Partial"}. Click on the recipe name to see links to supporting viewers' behaviour with the recipe manifest. This will allow you to see whether it achieves the required function in the way you expect.
{% for topic in page.topics %}
{% if topic.key %}
{% assign topic_key = topic.key %}
Expand Down Expand Up @@ -72,17 +72,17 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci
<td width="100px">
{% if current.id == viewer %}
{% if current.support == "full" %}
YES
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/yes.png" alt="Yes" title="Yes" />
{% else if current.support == "partial" %}
Partial
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/partial.png" alt="Partial" title="Partial" />
{% else %}
YES
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/yes.png" alt="Yes" title="Yes" />
{% endif %}
{% else %}
{% if recipe.viewers contains viewer %}
YES
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/yes.png" alt="Yes" title="Yes" />
{% else %}
NO
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/no.png" alt="No" title="No" />
{% endif %}
{% endif %}
</td>
Expand All @@ -91,3 +91,7 @@ The possible values for viewer support are YES, NO or Partial. Click on the reci
{% endfor %}
</table>
{% endfor %}

[YES]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/yes.png
[NO]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/no.png
[PARTIAL]: {{ site.cookbook_url | absolute_url }}/assets/images/icons/partial.png

0 comments on commit c14ec01

Please sign in to comment.