Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions templates/ecosystem/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@ <h3>{{ page.title }}<div class="maturity {{ page.extra.maturity | lower }}">{{ p
</a>
{% endif %}
{% if page.extra.repo %}
<a href="{{ page.extra.repo }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
</a>
{% if page.extra.repo.0 is defined %}
{% for repo_url in page.extra.repo %}
<a href="{{ repo_url }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just having "Source Code" multiple times seems not very useful for endusers. It probably should have some kind of title. In the case of Element if for example could say something like "Android Source Code" and "iOS Source Code" but this may differ with different examples

</a>
{% endfor %}
{% else %}
<a href="{{ page.extra.repo }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
</a>
{% endif %}
{% endif %}
</div>
</div>
Expand Down
17 changes: 13 additions & 4 deletions templates/macros/client_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,19 @@ <h4 class="support-title">Unsupported Features</h4>
</a>
{% endif %}
{% if client.repo %}
<a href="{{ client.repo }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
</a>
{% if client.repo.0 is defined %}
{% for repo_url in client.repo %}
<a href="{{ repo_url }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
</a>
{% endfor %}
{% else %}
<a href="{{ client.repo }}" class="pill">
{{ load_data(path="/assets/repository.svg") | safe }}
Source Code
</a>
{% endif %}
{% endif %}
</div>
<div class="stores">
Expand Down