Skip to content

Commit

Permalink
First try for adding colour to the table
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Aug 2, 2024
1 parent 95e72d1 commit cd51159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ code {

.viewer td {
border: none !important;
text-align: center !important;
}
10 changes: 5 additions & 5 deletions recipe/matrix.md
Original file line number Diff line number Diff line change
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/required.png" alt="Yes" title="Yes" />
{% else if current.support == "partial" %}
Partial
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/recommended.png" alt="Partial" title="Partial" />
{% else %}
YES
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/required.png" alt="Yes" title="Yes" />
{% endif %}
{% else %}
{% if recipe.viewers contains viewer %}
YES
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/required.png" alt="Yes" title="Yes" />
{% else %}
NO
<img src="{{ site.cookbook_url | absolute_url }}/assets/images/icons/not_allowed.png" alt="No" title="No"/>
{% endif %}
{% endif %}
</td>
Expand Down

0 comments on commit cd51159

Please sign in to comment.