|
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 | 9 | <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
| 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> |
31 | | - </div> |
32 | | - </div> |
| 17 | + <div class="contributors"> |
| 18 | + {% for contributor in contributors %} |
| 19 | + <div class="card contributor-data"> |
| 20 | + <img class="card-img-top contributor-image" |
| 21 | + src="//avatars.githubusercontent.com/{{ contributor.login }}" |
| 22 | + alt="Profile picture"> |
| 23 | + <div class="card-body"> |
| 24 | + <h5 class="card-title"> |
| 25 | + {% if contributor.name %} |
| 26 | + {{ contributor.name }} |
| 27 | + {% else %} |
| 28 | + {{ contributor.login }} |
| 29 | + {% endif %}{# if contributor.name #} |
| 30 | + <span class="github-icon"> |
| 31 | + <a href="//github.com/{{ contributor.login }}" target="_blank"> |
| 32 | + <i class="fa fa-github icon"></i> |
| 33 | + </a> |
| 34 | + </span> |
| 35 | + </h5> |
| 36 | + <p class="card-text">Bio: {{ contributor.bio }}</p> |
| 37 | + <p class="card-text">Commits: {{ contributor.num_commits }}</p> |
| 38 | + <p class="card-text">Reiviews: {{ contributor.reviews }}</p> |
| 39 | + <p class="card-text">Issues Opened: {{ contributor.issues_opened }}</p> |
33 | 40 | </div> |
34 | 41 | </div> |
| 42 | + {% endfor %}{# for contributor in contributors #} |
35 | 43 | </div> |
36 | | - <hr> |
37 | | - {% endfor %}{# for contributor in contributors #} |
38 | 44 | </ul> |
39 | 45 | </body> |
40 | 46 | </html> |
0 commit comments