-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.haml
66 lines (66 loc) · 2.04 KB
/
index.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
layout: page
---
{% for set in page.github %}
{% assign org = set[0]['owner'] %}
%h2
%img(src='{{ org.avatar_url }}&s=38')
%a(href='{{ org.html_url }}')
{{ org.login | replace: '-', ' ' }}
%table
%thead
%tr
%th Project
%th Stars
%th Version
%th Monthly downloads
%th Build
%th Coverage
%th Style
%th
%abbr(title='Main contributor') BDFL
%th
%abbr(title='Unique repository views past 14 days') Views
{% for repo in set %}
%tbody
%tr
%td
{{ repo.emoji }}
%a(href='{{ repo.html_url }}') {{ repo.name | replace: '-', ' ' }}
%td
%a(href='{{ repo.html_url }}/stargazers')
%img(src='https://img.shields.io/github/stars/{{ repo.full_name }}.svg?style=social&label=★')
%td
%a(href='{{ repo.html_url }}/releases')
%img(src='https://poser.pugx.org/{{ repo.composer.name }}/version')
%td
%a(href='https://packagist.org/packages/{{ repo.composer.name }}/stats')
%img(src='https://poser.pugx.org/{{ repo.composer.name }}/d/monthly')
%td<
{% if repo.readme['Build'] %}
%a(href='{{ repo.readme['Build'].url }}')
%img(src='{{ repo.readme['Build image'].url }}'
title='{{ repo.readme['Build image'].title }}')
{% else %}
—
{% endif %}
%td<
{% if repo.readme['Coverage'] %}
%a(href='{{ repo.readme['Coverage'].url }}')
%img(src='{{ repo.readme['Coverage image'].url }}'
title='{{ repo.readme['Coverage image'].title }}')
{% else %}
—
{% endif %}
%td
%a(href='https://styleci.io/repos/{{ repo.id }}')
%img(src='https://styleci.io/repos/{{ repo.id }}/shield?style=flat'
title='Code style')
%td
%a(href='{{ repo.top_contributor.html_url }}')
%img(src='{{ repo.top_contributor.avatar_url }}&s=32'
title='{{ repo.top_contributor.login }}')
%td
{{ repo.views }}
{% endfor %}
{% endfor %}