2016-12-28 16:47:53 +03:00
|
|
|
{% set platform = config.repo_url %}
|
2016-10-16 19:22:07 +03:00
|
|
|
{% if "github" in platform %}
|
2016-12-15 17:55:40 +03:00
|
|
|
{% set repo_type = "github" %}
|
2016-10-16 19:22:07 +03:00
|
|
|
{% elif "gitlab" in platform %}
|
2016-12-15 17:55:40 +03:00
|
|
|
{% set repo_type = "gitlab" %}
|
2016-10-16 19:22:07 +03:00
|
|
|
{% elif "bitbucket" in platform %}
|
2016-12-15 17:55:40 +03:00
|
|
|
{% set repo_type = "bitbucket" %}
|
2016-09-23 18:46:16 +03:00
|
|
|
{% else %}
|
2016-12-15 17:55:40 +03:00
|
|
|
{% set repo_type = "" %}
|
2016-09-23 18:46:16 +03:00
|
|
|
{% endif %}
|
2016-12-28 16:47:53 +03:00
|
|
|
<a href="{{ config.repo_url }}" title="Go to repository" class="md-source" data-md-source="{{ repo_type }}">
|
|
|
|
{% if repo_type %}
|
|
|
|
<svg class="md-source__icon">
|
|
|
|
<use xlink:href="#{{ repo_type }}" x="12" y="12" width="24" height="24"></use>
|
|
|
|
</svg>
|
|
|
|
{% endif %}
|
2016-09-23 18:46:16 +03:00
|
|
|
<div class="md-source__repository">
|
2016-12-16 11:21:31 +03:00
|
|
|
{{ config.repo_name }}
|
2016-09-23 18:46:16 +03:00
|
|
|
</div>
|
|
|
|
</a>
|