|
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>Meta-review Score Ranking List</title> |
10 |
| - </head> |
11 |
| - <body> |
12 |
| - <h1>Details of meta-review score</h1> |
13 |
| - <ul> |
14 |
| - {% for participant in participants %} |
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: {{ participant.login }}</p> |
21 |
| - <p>name: {{ participant.name }}</p> |
22 |
| - <p>score: {{ participant.score|floatformat:2 }}</p> |
23 |
| - <p>rank: {{ participant.rank }}</p> |
24 |
| - <p>trend: {{ participant.trend }}</p> |
25 |
| - <p>received: </p> |
26 |
| - <p>number of positive reactions: {{ participant.pos_in }}</p> |
27 |
| - <p> |
28 |
| - weighted positive reactions: |
29 |
| - {{ participant.weighted_pos_in|floatformat:2 }} |
30 |
| - </p> |
31 |
| - <p>number of negative reactions: {{ participant.neg_in }}</p> |
32 |
| - <p> |
33 |
| - weighted negative reactions: |
34 |
| - {{ participant.weighted_neg_in|floatformat:2 }} |
35 |
| - </p> |
36 |
| - <p>give away: </p> |
37 |
| - <p>number of positive reactions: {{ participant.pos_out }}</p> |
38 |
| - <p>number of negative reactions: {{ participant.neg_out }}</p> |
39 |
| - <p> |
40 |
| - negative point offset: |
41 |
| - {{ participant.offset|floatformat:2 }} |
42 |
| - </p> |
43 |
| - <p>weight_factor: {{ participant.weight_factor|floatformat:2 }}</p> |
44 |
| - </div> |
| 1 | +{% extends 'base.html' %} |
| 2 | +{% load staticfiles %} |
| 3 | +{% block title %} |
| 4 | + Community | Meta-Review |
| 5 | +{% endblock %} |
| 6 | + |
| 7 | +{% block add_css_files %} |
| 8 | + <link rel="stylesheet" href="{% static 'css/contributors.css' %}"> |
| 9 | + <link rel="stylesheet" href="{% static 'css/meta-reviewers.css' %}"> |
| 10 | +{% endblock %} |
| 11 | + |
| 12 | +{% block add_js_files %} |
| 13 | + <script src="{% static 'js/contributors.js' %}"></script> |
| 14 | +{% endblock %} |
| 15 | + |
| 16 | +{% block main-content %} |
| 17 | + |
| 18 | + <div class="web-page-details apply-flex center-content"> |
| 19 | + <h3 style="padding-right: 15px">~</h3> |
| 20 | + <h3 class="page-name"> |
| 21 | + Contributors Meta-Review Details |
| 22 | + </h3> |
| 23 | + <h3 style="padding-left: 15px">~</h3> |
| 24 | + </div> |
| 25 | + |
| 26 | + <div class="apply-flex center-content"> |
| 27 | + <p class="container web-page-description"> |
| 28 | + Contributor meta-review related details are calculated based upon the |
| 29 | + GitHub reactions made by that contributor on any issue or merge request |
| 30 | + within an organization, for example - {{ org.name }}. |
| 31 | + </p> |
| 32 | + </div> |
| 33 | + |
| 34 | + <div class="contributors-section apply-flex center-content"> |
| 35 | + <div class="form-fields"> |
| 36 | + <form> |
| 37 | + <div class="input-field apply-flex center-content search-field"> |
| 38 | + <i class="fa fa-search social-icons"></i> |
| 39 | + <input id="search" type="search" autocomplete="off" placeholder="Search by username or name" required> |
| 40 | + <i class="fa fa-close social-icons"></i> |
| 41 | + </div> |
| 42 | + </form> |
| 43 | + <div class="apply-flex center-content"> |
| 44 | + </div> |
| 45 | + <div class="search-results"> |
| 46 | + <table> |
| 47 | + <thead> |
| 48 | + <tr> |
| 49 | + <th>Search Results</th> |
| 50 | + </tr> |
| 51 | + </thead> |
| 52 | + <tbody class="search-results-tbody large-font"> |
| 53 | + <tr> |
| 54 | + <td> |
| 55 | + No results found! |
| 56 | + </td> |
| 57 | + </tr> |
| 58 | + </tbody> |
| 59 | + </table> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + |
| 64 | + <div class="contributors-cards"> |
| 65 | + {% for contributor in contributors_meta_review_details %} |
| 66 | + <div class="contributor-card meta-reviewer apply-flex" login="{{ contributor.login }}" name="{{ contributor.name }}"> |
| 67 | + <div class="contributor-image meta-reviewer-image"> |
| 68 | + <img src="//github.com/{{ contributor.login }}.png/?size=210" |
| 69 | + alt="user-image"> |
| 70 | + <div class="top-right large-font bold-text"> |
| 71 | + {{ contributor.rank }} |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + <div class="metareviewer-details"> |
| 75 | + <div class="contributor-details-part-1 column-flex"> |
| 76 | + <a class="bold-text large-font" href="//github.com |
| 77 | + /{{ contributor.login }}" target="_blank"> |
| 78 | + {% if contributor.name %} |
| 79 | + {{ contributor.login }} ({{ contributor.name }}) |
| 80 | + {% else %} |
| 81 | + {{ contributor.login }} |
| 82 | + {% endif %}{# if contributor.name #} |
| 83 | + </a> |
| 84 | + <div class="large-font gray-font-color"> |
| 85 | + <span> |
| 86 | + <b>Score:</b> |
| 87 | + {{ contributor.score|floatformat:2 }} |
| 88 | + </span> |
| 89 | + <span> |
| 90 | + <b>Trend:</b> |
| 91 | + {{ contributor.trend }} |
| 92 | + </span> |
| 93 | + <div> |
| 94 | + <b>Given reactions:</b> |
| 95 | + <div> |
| 96 | + <span> |
| 97 | + <i class="fa fa-smile-o"></i> |
| 98 | + {{ contributor.pos_out }} |
| 99 | + <i class="fa fa-frown-o"></i> |
| 100 | + {{ contributor.neg_out }} |
| 101 | + </span> |
45 | 102 | </div>
|
46 | 103 | </div>
|
| 104 | + <span> |
| 105 | + <b>Weight factor:</b> |
| 106 | + {{ contributor.weight_factor|floatformat:2 }} |
| 107 | + </span> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + <div class="contributor-details-part-2 column-flex large-font gray-font-color"> |
| 111 | + <div class="received-reactions"> |
| 112 | + <b>Received reactions:</b> |
| 113 | + <div> |
| 114 | + <b>> Count</b> |
| 115 | + <div> |
| 116 | + <span> |
| 117 | + <i class="fa fa-smile-o"></i> |
| 118 | + {{ contributor.pos_in }} |
| 119 | + <i class="fa fa-frown-o"></i> |
| 120 | + {{ contributor.neg_in }} |
| 121 | + </span> |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + <div> |
| 125 | + <b>> Weighted</b> |
| 126 | + <div> |
| 127 | + <span> |
| 128 | + <i class="fa fa-smile-o"></i> |
| 129 | + {{ contributor.weighted_pos_in|floatformat:0 }} |
| 130 | + <i class="fa fa-frown-o"></i> |
| 131 | + {{ contributor.weighted_neg_in|floatformat:0 }} |
| 132 | + </span> |
| 133 | + </div> |
47 | 134 | </div>
|
48 | 135 | </div>
|
49 |
| - <hr> |
50 |
| - {% endfor %}{# for participant in participants #} |
51 |
| - </ul> |
52 |
| - </body> |
53 |
| -</html> |
| 136 | + <span> |
| 137 | + <b>Negative point offset:</b> |
| 138 | + {{ contributor.offset|floatformat:2 }} |
| 139 | + </span> |
| 140 | + </div> |
| 141 | + </div> |
| 142 | + </div> |
| 143 | + {% endfor %}{# for contributor in contributors_meta_review_details #} |
| 144 | + </div> |
| 145 | + |
| 146 | +{% endblock %} |
0 commit comments