|
1 |
| -<!DOCTYPE html> |
2 |
| -<html lang="en"> |
3 |
| - <head> |
4 |
| - <!-- Required meta tags --> |
5 |
| - <meta charset="utf-8"> |
6 |
| - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
7 |
| - <!-- 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 |
| - <title>Contributors Data</title> |
10 |
| - </head> |
11 |
| - <body> |
12 |
| - <h1>Details of all the contributors</h1> |
13 |
| - <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> |
33 |
| - </div> |
| 1 | +{% extends 'base.html' %} |
| 2 | +{% load staticfiles %} |
| 3 | +{% block title %} |
| 4 | + Community | Contributors |
| 5 | +{% endblock %} |
| 6 | + |
| 7 | +{% block add_css_files %} |
| 8 | + <link rel="stylesheet" href="{% static 'css/contributors.css' %}"> |
| 9 | +{% endblock %} |
| 10 | + |
| 11 | +{% block add_js_files %} |
| 12 | + <script src="{% static 'js/contributors.js' %}"></script> |
| 13 | +{% endblock %} |
| 14 | + |
| 15 | +{% block main-content %} |
| 16 | + |
| 17 | + <div class="web-page-details apply-flex center-content"> |
| 18 | + <h3 style="padding-right: 15px">~</h3> |
| 19 | + <h3 class="page-name"> |
| 20 | + Our Precious Contributors |
| 21 | + </h3> |
| 22 | + <h3 style="padding-left: 15px">~</h3> |
| 23 | + </div> |
| 24 | + |
| 25 | + <div class="apply-flex center-content"> |
| 26 | + <p class="container web-page-description"> |
| 27 | + Contributor's who've been putting their hard-work to make {{ org.name }} best of its |
| 28 | + own. Thanks to all contributors to make {{ org.name }} what is it today. |
| 29 | + </p> |
| 30 | + </div> |
| 31 | + |
| 32 | + <div class="contributors-section apply-flex center-content"> |
| 33 | + <div class="form-fields"> |
| 34 | + <form> |
| 35 | + <div class="input-field apply-flex center-content search-field"> |
| 36 | + <i class="fa fa-search social-icons"></i> |
| 37 | + <input id="search" type="search" autocomplete="off" placeholder="Search by username or name" required> |
| 38 | + <i class="fa fa-close social-icons"></i> |
34 | 39 | </div>
|
| 40 | + </form> |
| 41 | + <div class="apply-flex center-content"> |
| 42 | + </div> |
| 43 | + <div class="search-results"> |
| 44 | + <table> |
| 45 | + <thead> |
| 46 | + <tr> |
| 47 | + <th>Search Results</th> |
| 48 | + </tr> |
| 49 | + </thead> |
| 50 | + <tbody class="search-results-tbody large-font"> |
| 51 | + <tr> |
| 52 | + <td> |
| 53 | + No results found! |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + </tbody> |
| 57 | + </table> |
35 | 58 | </div>
|
36 |
| - <hr> |
37 |
| - {% endfor %}{# for contributor in contributors #} |
38 |
| - </ul> |
39 |
| - </body> |
40 |
| -</html> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + |
| 62 | + <div class="contributors-cards"> |
| 63 | + {% for contributor in contributors %} |
| 64 | + <div class="contributor-card" login="{{ contributor.login }}" name="{{ contributor.name }}"> |
| 65 | + <div class="contributor-image"> |
| 66 | + <img src="//github.com/{{ contributor.login }}.png/?size=210"> |
| 67 | + </div> |
| 68 | + <div class="contributor-details"> |
| 69 | + <a class="bold-font large-font" href="//github.com/{{ contributor.login }}" target="_blank"> |
| 70 | + {% if contributor.name %} |
| 71 | + {{ contributor.name }} |
| 72 | + {% else %} |
| 73 | + {{ contributor.login }} |
| 74 | + {% endif %}{# if contributor.name #} |
| 75 | + </a> |
| 76 | + <div class="apply-flex evenly-spread-content contributions gray-font-color"> |
| 77 | + <div class="commits"> |
| 78 | + <p>{{ contributor.num_commits }}</p> |
| 79 | + <p class="bold-text">Commits</p> |
| 80 | + </div> |
| 81 | + <div class="reviews"> |
| 82 | + <p>{{ contributor.reviews }}</p> |
| 83 | + <p class="bold-text">Reviews</p> |
| 84 | + </div> |
| 85 | + <div class="issues-opened"> |
| 86 | + <p>{{ contributor.issues_opened }}</p> |
| 87 | + <p class="bold-text">Issues</p> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + {% endfor %}{# for contributor in contributors #} |
| 93 | + </div> |
| 94 | + |
| 95 | +{% endblock %} |
0 commit comments