Skip to content

Commit c6bf143

Browse files
committed
Address review feedback
1 parent 485aa16 commit c6bf143

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

readthedocs/donate/static/donate/css/donate.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
margin-right: auto;
44
width: 900px;
55
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;
615
}

readthedocs/donate/templates/donate/promo_detail.html

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
{% block title %}{% trans "Promo Detail" %}{% endblock %}
77

8+
{% block extra_links %}
9+
<link rel="stylesheet" href="{% static 'donate/css/donate.css' %}" />
10+
{% endblock %}
11+
812
{% block content %}
913

1014
<h1> Promo Results </h1>
@@ -24,43 +28,50 @@ <h3>
2428
Results for {{ promo.name }} ({{ promo.analytics_id }}) over last {{ days }} days.
2529
</h3>
2630

27-
<div class="example" style="width: 30%;">
31+
<div class="example">
2832

2933
<div class="filters">
3034
{% 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>
3439
{% endif %}
3540

3641
{% if promo.geo_filters.count %}
37-
<p>
38-
<strong>Filtered Geos</strong>:
42+
<dl>
43+
<dt>Filtered Geos</dt>
3944
{% 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>
4148
{% endfor %}
42-
</p>
49+
</dl>
4350
{% endif %}
4451

4552
{% 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>
4959
{% endif %}
5060
</div>
5161

52-
<a href="{{ promo.link }}">
53-
<img width=120 height=90 src="{{ promo.image }}">
54-
</a>
5562

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>
5769

58-
<div class="promo_text">
59-
{{ promo.report_html_text|safe }}
70+
<div id="promo_text">
71+
{{ promo.report_html_text|safe }}
72+
</div>
6073
</div>
6174

62-
<br>
63-
6475
</div>
6576

6677
<h5>Promo Data</h5>

0 commit comments

Comments
 (0)