Skip to content

Commit bb8844d

Browse files
author
Dylan McCall
committed
Remove empty popup titles
1 parent 25c6a74 commit bb8844d

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

python_env/src/cc.engine/cc/engine/templates/licenses/standard_deed.html

+1-11
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ <h3>{% trans %}Creative Commons has <a href="http://creativecommons.org/retiredl
8484
<div id="deed-conditions" class="row">
8585
<h3 style="text-align: center">{% trans %}Under the following terms:{% endtrans %}</h3>
8686

87-
<ul dir="{{ get_ltr_rtl }}" style="{{ is_rtl_align }}"
88-
class="license-properties col-md-offset-2 col-md-8">
87+
<ul dir="{{ get_ltr_rtl }}" style="{{ is_rtl_align }}" class="license-properties col-md-offset-2 col-md-8">
8988
{% if conditions['by'] %}
9089
<li class="license by">
9190
<p>
@@ -198,7 +197,6 @@ <h3 style="text-align: center">
198197
</div>
199198

200199
<div id="help_mediation_and_arbitration_popup" class="help_panel">
201-
<div class="hd">&nbsp;</div>
202200
<div class="bd">
203201
<p>{% trans %}The applicable mediation rules will be designated in the copyright notice published with the work, or if none then in the request for mediation. Unless otherwise designated in a copyright notice attached to the work, the UNCITRAL Arbitration Rules apply to any arbitration.{% endtrans %}</p>
204202
<p><a href="http://wiki.creativecommons.org/Intergovernmental_Organizations#What_should_I_know_before_I_use_a_work_licensed_under_the_IGO_3.0_ported_licenses.3F">
@@ -207,7 +205,6 @@ <h3 style="text-align: center">
207205
</div>
208206

209207
<div id="help_appropriate_credit_popup" class="help_panel">
210-
<div class="hd">&nbsp;</div>
211208
<div class="bd">
212209
<p>{% trans %}If supplied, you must provide the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material. CC licenses prior to Version 4.0 also require you to provide the title of the material if supplied, and may have other slight differences.{% endtrans %}</p>
213210
<p><a href="http://wiki.creativecommons.org/License_Versions#Detailed_attribution_comparison_chart">
@@ -216,7 +213,6 @@ <h3 style="text-align: center">
216213
</div>
217214

218215
<div id="help_indicate_changes_popup" class="help_panel">
219-
<div class="hd">&nbsp;</div>
220216
<div class="bd">
221217
<p>{% trans %}In 4.0, you must indicate if you modified the material and retain an indication of previous modifications. In 3.0 and earlier license versions, the indication of changes is only required if you create a derivative.{% endtrans %}</p>
222218
<p><a href="http://wiki.creativecommons.org/Best_practices_for_attribution#This_is_a_good_attribution_for_material_you_modified_slightly">
@@ -227,7 +223,6 @@ <h3 style="text-align: center">
227223
</div>
228224

229225
<div id="help_same_license_popup" class="help_panel">
230-
<div class="hd">&nbsp;</div>
231226
<div class="bd">
232227
<p>{% trans %}You may also use a license listed as compatible at <a href="https://creativecommons.org/compatiblelicenses">https://creativecommons.org/compatiblelicenses</a>{% endtrans %}</p>
233228
<p><a href="http://wiki.creativecommons.org/FAQ#If_I_derive_or_adapt_material_offered_under_a_Creative_Commons_license.2C_which_CC_license.28s.29_can_I_use.3F">
@@ -236,7 +231,6 @@ <h3 style="text-align: center">
236231
</div>
237232

238233
<div id="help_commercial_purposes_popup" class="help_panel">
239-
<div class="hd">&nbsp;</div>
240234
<div class="bd">
241235
<p>{% trans %}A commercial use is one primarily intended for commercial advantage or monetary compensation.{% endtrans %}</p>
242236
<p><a href="http://wiki.creativecommons.org/Frequently_Asked_Questions#Does_my_use_violate_the_NonCommercial_clause_of_the_licenses.3F">
@@ -245,7 +239,6 @@ <h3 style="text-align: center">
245239
</div>
246240

247241
<div id="help_some_kinds_of_mods_popup" class="help_panel">
248-
<div class="hd">&nbsp;</div>
249242
<div class="bd">
250243
<p>{% trans %}Merely changing the format never creates a derivative.{% endtrans %}</p>
251244
<p><a href="http://wiki.creativecommons.org/Frequently_Asked_Questions#When_is_my_use_considered_an_adaptation.3F">
@@ -254,7 +247,6 @@ <h3 style="text-align: center">
254247
</div>
255248

256249
<div id="help_technological_measures_popup" class="help_panel">
257-
<div class="hd">&nbsp;</div>
258250
<div class="bd">
259251
<p>{% trans %}The license prohibits application of effective technological measures, defined with reference to Article 11 of the WIPO Copyright Treaty.{% endtrans %}</p>
260252
<p><a href="http://wiki.creativecommons.org/License_Versions#Application_of_effective_technological_measures_by_users_of_CC-licensed_works_prohibited">
@@ -263,7 +255,6 @@ <h3 style="text-align: center">
263255
</div>
264256

265257
<div id="help_exception_or_limitation_popup" class="help_panel">
266-
<div class="hd">&nbsp;</div>
267258
<div class="bd">
268259
<p>{% trans %}The rights of users under exceptions and limitations, such as fair use and fair dealing, are not affected by the CC licenses.{% endtrans %}</p>
269260
<p><a href="http://wiki.creativecommons.org/Frequently_Asked_Questions#Do_Creative_Commons_licenses_affect_exceptions_and_limitations_to_copyright.2C_such_as_fair_dealing_and_fair_use.3F">
@@ -272,7 +263,6 @@ <h3 style="text-align: center">
272263
</div>
273264

274265
<div id="help_publicity_privacy_or_moral_rights_popup" class="help_panel">
275-
<div class="hd">&nbsp;</div>
276266
<div class="bd">
277267
<p>{% trans %}You may need to get additional permissions before using the material as you intend.{% endtrans %}</p>
278268
<p><a href="http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees">

python_env/src/cc.engine/cc/engine/templates/macros_templates/deed.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,13 @@ <h2>
252252
var popupId = helpId ? 'help_' + helpId : undefined;
253253
if (popupId) {
254254
var popupElem = $('#'+popupId);
255-
var popupTitleElem = $('.hd', popupElem);
256-
var popupBodyElem = $('.bd', popupElem);
255+
var popupTitleHtml = $('.hd', popupElem).html();
256+
var popupBodyHtml = $('.bd', popupElem).html();
257257
$(helpLinkElem).popover({
258-
placement: 'bottom',
258+
placement: 'auto bottom',
259259
trigger: 'focus',
260-
title: popupTitleElem.html(),
261-
content: popupBodyElem.html(),
260+
title: popupTitleHtml ? popupTitleHtml : undefined,
261+
content: popupBodyHtml ? popupBodyHtml : undefined,
262262
html: true
263263
});
264264
}

0 commit comments

Comments
 (0)