|
1 | 1 | <!DOCTYPE html>
|
| 2 | +{% load staticfiles %} |
2 | 3 | <html lang="en">
|
3 | 4 | <head>
|
4 | 5 | <!-- Required meta tags -->
|
5 | 6 | <meta charset="utf-8">
|
6 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
7 | 8 | <!-- Bootstrap CSS -->
|
8 |
| - <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
| 9 | + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> |
| 10 | + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
| 11 | + <link href="{% static 'main.css' %}" rel="stylesheet"> |
9 | 12 | <title>Contributors Data</title>
|
10 | 13 | </head>
|
11 | 14 | <body>
|
12 | 15 | <h1>Details of all the contributors</h1>
|
13 | 16 | <ul>
|
14 |
| - {% for contributor in contributors %} |
15 |
| - <div class="container"> |
16 |
| - <div class="row"> |
17 |
| - <div class="col-sm-6 col-md-4"> |
18 |
| - <div class="thumbnail"> |
19 |
| - <div class="caption"> |
20 |
| - <p>login: {{ contributor.login }}</p> |
21 |
| - <p>name: {{ contributor.name }}</p> |
22 |
| - <p>bio: {{ contributor.bio }}</p> |
23 |
| - <p>num_commits: {{ contributor.num_commits }}</p> |
24 |
| - <p>reviews: {{ contributor.reviews }}</p> |
25 |
| - <p>issues_opened: {{ contributor.issues_opened }}</p> |
26 |
| - <p>teams: |
27 |
| - {% for team in contributor.teams.all %} |
28 |
| - {{ team.name }} |
29 |
| - {% endfor %}{# for team in contributor.teams.all #} |
30 |
| - </p> |
| 17 | + <div class="contributors"> |
| 18 | + {% for contributor in contributors %} |
| 19 | + <div class="card contributor-card"> |
| 20 | + <div class="empty"></div> |
| 21 | + <div class="card-action center"> |
| 22 | + <img class="center contributor-image" |
| 23 | + src="//avatars.githubusercontent.com/{{ contributor.login }}" |
| 24 | + alt="Profile picture"> |
| 25 | + <h5 class="card-title"> |
| 26 | + {% if contributor.name %} |
| 27 | + {{ contributor.name }} |
| 28 | + {% else %} |
| 29 | + {{ contributor.login }} |
| 30 | + {% endif %}{# if contributor.name #} |
| 31 | + <span class="github-icon"> |
| 32 | + <a href="//github.com/{{ contributor.login }}" target="_blank"> |
| 33 | + <i class="fa fa-github icon"></i> |
| 34 | + </a> |
| 35 | + </span> |
| 36 | + </h5> |
| 37 | + <div class="bio">{{ contributor.bio }}</div> |
| 38 | + <div class="stats"> |
| 39 | + <div class="center contributors"> |
| 40 | + <div> |
| 41 | + <div>{{ contributor.num_commits }}</div> |
| 42 | + <div class="tiny-label">COMMITS</div> |
| 43 | + </div> |
| 44 | + <div> |
| 45 | + <div>{{ contributor.reviews }}</div> |
| 46 | + <div class="tiny-label">REVIEWS</div> |
| 47 | + </div> |
| 48 | + <div> |
| 49 | + <div>{{ contributor.issues_opened }}</div> |
| 50 | + <div class="tiny-label">ISSUES</div> |
| 51 | + </div> |
31 | 52 | </div>
|
32 | 53 | </div>
|
33 | 54 | </div>
|
34 | 55 | </div>
|
| 56 | + {% endfor %}{# for contributor in contributors #} |
35 | 57 | </div>
|
36 |
| - <hr> |
37 |
| - {% endfor %}{# for contributor in contributors #} |
38 | 58 | </ul>
|
39 | 59 | </body>
|
40 | 60 | </html>
|
0 commit comments