|
4 | 4 | Snakemake {% block type %}{% endblock %} plugin: {{ plugin_name }} |
5 | 5 | ########################################### |
6 | 6 |
|
7 | | -{% if repository is not none %} |
| 7 | +{% if repository is not none -%} |
8 | 8 | .. image:: https://img.shields.io/badge/repository-{{ repository_type }}-blue?color=%23022c22 |
9 | 9 | :target: {{ repository }} |
10 | | -{% else %} |
| 10 | +{% else -%} |
11 | 11 | .. image:: https://img.shields.io/badge/repository-unknown-blue?color=%23022c22 |
12 | 12 | :target: # |
13 | | -{% endif %} |
14 | | - |
15 | | -{% if repository_type == "github" and repository is not none %} |
16 | | -{% set repo = repository.replace("https://github.com/", "").replace(".git", "").rstrip("/") %} |
| 13 | +{% endif -%} |
| 14 | +{% if repository_type == "github" and repository is not none -%} |
| 15 | +{% set repo = repository.replace("https://github.com/", "").replace(".git", "").rstrip("/") -%} |
17 | 16 | .. image:: https://img.shields.io/github/last-commit/{{ repo }} |
18 | 17 | :alt: GitHub - Last commit |
19 | 18 | :target: {{ repository }} |
20 | | -{% elif repository_type == "gitlab" and repository is not none %} |
21 | | -{% set repo = repository.replace("https://gitlab.com/", "").replace(".git", "").rstrip("/") %} |
| 19 | +{% elif repository_type == "gitlab" and repository is not none -%} |
| 20 | +{% set repo = repository.replace("https://gitlab.com/", "").replace(".git", "").rstrip("/") -%} |
22 | 21 | .. image:: https://img.shields.io/gitlab/last-commit/{{ repo }} |
23 | 22 | :alt: GitLab - Last commit |
24 | 23 | :target: {{ repository }} |
25 | | -{% endif %} |
26 | | - |
27 | | -{% for author in authors %} |
| 24 | +{% elif commit_info is not none -%} |
| 25 | +.. image:: https://img.shields.io/badge/last_commit-{{ commit_info["sha"] }}-green?color={{ commit_age_color }} |
| 26 | + :alt: Last commit |
| 27 | + :target: {{ commit_url }} |
| 28 | +.. image:: https://img.shields.io/badge/last_updated-{{ commit_date_label }}-green?color={{ commit_age_color }} |
| 29 | + :alt: Last updated |
| 30 | + :target: {{ commit_url }} |
| 31 | +{% endif -%} |
| 32 | +{% for author in authors -%} |
28 | 33 | .. image:: https://img.shields.io/badge/author-{{author|replace("-","--")|urlencode}}-purple?color=%23064e3b |
29 | 34 | :target: https://pypi.org/project/{{ package_name }} |
30 | | -{% endfor %} |
31 | | - |
| 35 | +{% endfor -%} |
32 | 36 | .. image:: https://img.shields.io/pypi/v/{{ package_name }}?color=%23047857 |
33 | 37 | :alt: PyPI - Version |
34 | 38 | :target: https://pypi.org/project/{{ package_name }} |
35 | | - |
36 | 39 | .. image:: https://img.shields.io/pypi/l/{{ package_name }}?color=%2310b981 |
37 | 40 | :alt: PyPI - License |
38 | 41 | :target: https://pypi.org/project/{{ package_name }} |
| 42 | +{% if snakemake_version is not none %} |
| 43 | +.. image:: https://img.shields.io/badge/snakemake-{{ snakemake_version|replace("-", "--") }}-blue?color=%230ea5e9 |
| 44 | + :alt: Snakemake |
| 45 | + :target: https://snakemake.readthedocs.io |
| 46 | +{% endif %} |
39 | 47 |
|
40 | 48 | {% if repository is not none and not repository.startswith("https://github.com/snakemake/") %} |
41 | 49 | .. warning:: |
|
0 commit comments