Sha256: 3a22806bf17d665203037ac51b6b09e499dc0bead6ad7058ef38a8cb87ec8e88

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

---
layout: page
---

<h1>Info</h1>
<table>
    <tbody>
    <tr>
        <th>Name</th>
        <td>{{ page.content.name }}</td>
    </tr>
    <tr>
        <th>Version</th>
        <td>{{ page.content.version }}</td>
    </tr>
    <tr>
        <th>Learning</th>
        <td>{{ page.content.learning }}</td>
    </tr>

    <tr>
        <th>Translation Type</th>
        <td>{{ page.content.translationType }}</td>
    </tr>

    {% if page.content.translationType == 'multiple' %}

    <tr>
        <th>Translations</th>
        <td>{{ page.content.translations | join: ', ' }}</td>
    </tr>
    {% endif %}

    {% assign apiPage = page.related_page %}

    {% if apiPage %}

    <tr>
        <th> <a href="{{ apiPage.url | relative_url }}" target="_blank">API LINK</a> </th>
        <td>
            <button onclick="copyToClipboard('{{ apiPage.url | absolute_url }}')">Copy to Clipboard</button>
        </td>
    </tr>
    {% endif %}


    </tbody>
</table>

{% if page.content.translationType == 'single' %}
    {% include dictionaries/single/container.html items=page.content.data prefix='dict-level' %}
{% else %}
    {% include dictionaries/multiple/container.html items=page.content.data translations=page.content.translations prefix='dict-level' %}
{% endif %}

{% include dictionaries/accordion.html %}

<script>
    function copyToClipboard(text) {
        // Copy the text inside the text field
        navigator.clipboard.writeText(text);
    }
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-dictionaries-1.0.3 _layouts/dictionary.html