File tree 2 files changed +39
-19
lines changed
2 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 3
3
margin-right : auto;
4
4
width : 900px ;
5
5
text-align : center
6
+
7
+ .promo {
8
+ margin-top : 1em ;
9
+ margin-bottom : 1em ;
10
+ width : 240px ;
11
+ }
12
+
13
+ .filters dt {
14
+ font-weight : bold;
6
15
}
Original file line number Diff line number Diff line change 5
5
6
6
{% block title %}{% trans "Promo Detail" %}{% endblock %}
7
7
8
+ {% block extra_links %}
9
+ < link rel ="stylesheet " href ="{% static 'donate/css/donate.css' %} " />
10
+ {% endblock %}
11
+
8
12
{% block content %}
9
13
10
14
< h1 > Promo Results </ h1 >
24
28
Results for {{ promo.name }} ({{ promo.analytics_id }}) over last {{ days }} days.
25
29
</ h3 >
26
30
27
- < div class ="example " style =" width: 30%; " >
31
+ < div class ="example ">
28
32
29
33
< div class ="filters ">
30
34
{% if promo.programming_language %}
31
- < p >
32
- < strong > Filtered Language</ strong > : {{ promo.programming_language }}
33
- </ p >
35
+ < dl >
36
+ < dt > Filtered Language</ dt >
37
+ < dd > {{ promo.programming_language }}</ dd >
38
+ </ dl >
34
39
{% endif %}
35
40
36
41
{% if promo.geo_filters.count %}
37
- < p >
38
- < strong > Filtered Geos</ strong > :
42
+ < dl >
43
+ < dt > Filtered Geos</ dt >
39
44
{% for geo in promo.geo_filters.all %}
40
- {{ geo.countries.all|join:", " }}
45
+ < dd >
46
+ {{ geo.get_filter_type_display }}: {{ geo.countries.all|join:", " }}
47
+ </ dd >
41
48
{% endfor %}
42
- </ p >
49
+ </ dl >
43
50
{% endif %}
44
51
45
52
{% if promo.sold_clicks %}
46
- < p >
47
- < strong > Total Clicks Sold</ strong > : {{ promo.sold_clicks }}
48
- </ p >
53
+ < dl >
54
+ < dt > Total Clicks Sold</ dt >
55
+ < dd >
56
+ {{ promo.sold_clicks }}
57
+ </ dd >
58
+ </ dl >
49
59
{% endif %}
50
60
</ div >
51
61
52
- < a href ="{{ promo.link }} ">
53
- < img width =120 height =90 src ="{{ promo.image }} ">
54
- </ a >
55
62
56
- < br >
63
+ < div class ="promo ">
64
+ < div id ="promo_image ">
65
+ < a href ="{{ promo.link }} ">
66
+ < img width =120 height =90 src ="{{ promo.image }} ">
67
+ </ a >
68
+ </ div >
57
69
58
- < div class ="promo_text ">
59
- {{ promo.report_html_text|safe }}
70
+ < div id ="promo_text ">
71
+ {{ promo.report_html_text|safe }}
72
+ </ div >
60
73
</ div >
61
74
62
- < br >
63
-
64
75
</ div >
65
76
66
77
< h5 > Promo Data</ h5 >
You can’t perform that action at this time.
0 commit comments