forked from endoflife-date/endoflife.date
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for custom columns (endoflife-date#4002)
They can be used for documenting things such as related runtime versions, custom dates that cannot be expressed using the default columns, etc. See the documentation in the contribution guide for more information on how to use them. This is only an initial support and: - The allowed positions have been limited to positions that have a chance to be used. More positions may be added in the future if needed. - Those properties may also be exposed in the new API responses (after endoflife-date#2080). Closes endoflife-date#3642.
- Loading branch information
1 parent
c671e62
commit 7489fc2
Showing
7 changed files
with
156 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{%- comment %} | ||
Render a product custom column data cell (<td>). | ||
|
||
Parameters: | ||
- release (mandatory): a product release cycle definition. | ||
- column (mandatory): the custom column definition. | ||
- cssClasses (optional): a space-separated list of CSS classes to add to the cell. | ||
{% endcomment %} | ||
{%- assign release = include.release %} | ||
{%- assign propertyName = include.column.property %} | ||
{%- assign cssClasses = include.cssClasses | default:'' %} | ||
<td class="{{ cssClasses }}">{{ release[propertyName] | default: 'N/A' }}</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{%- comment %} | ||
Render a product custom column header cell (<th>). | ||
|
||
Parameters: | ||
- column (mandatory): the custom column definition. | ||
{% endcomment %} | ||
{%- assign label = include.column.label %} | ||
{%- assign description = include.column.description %} | ||
{%- assign link = include.column.link %} | ||
<th title="{{ description }}"> | ||
{% if link %}<a href="{{ link }}">{{ label }}</a>{% else %}{{ label }}{% endif %} | ||
</th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters