Skip to content

Commit

Permalink
Revert changes in imagery.mako - need to be translated
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrog committed Dec 27, 2014
1 parent 5cae7d5 commit 60f73b1
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions osmtm/templates/imagery.mako
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,29 @@
<%
license_agreement_url = request.route_path('license', license=project.license.id, \
_query={'redirect': request.route_path('project', project=project.id)})
link = '<a href="%s">%s</a>' % (
license_agreement_url,
_('${licence_name} license agreement', mapping={'licence_name': project.license.name})
)
text = _("Access to this imagery is limited by the ${licence_agreement_link}.",
mapping={'licence_agreement_link': link})
%>
<p class="text-warning">
<span class="glyphicon glyphicon-warning-sign"></span>
${text|n}
Access to this imagery is limited by the
<a href="${license_agreement_url}">
${project.license.name} license agreement
</a>.
</p>
<p class="${'text-error' if not license_accepted else 'text-success'}">
% if license_accepted:
<span class="glyphicon glyphicon-ok"></span>
${_('You have already acknowledged the terms of this license.')}</span>
You have already acknowledged the terms of this license.</span>
% else:
<%
link = '<a href="%s">%s</a>' % (review_and_acknowledge_link, _('review and acknowledge'))
text = _("You need to ${review_and_acknowledge_link} the agreement.",
mapping={'review_and_acknowledge_link': link})
%>
${text|n}
You need to
<a href="${license_agreement_url}">
review and acknowledge
</a>
the agreement.
<script>
var licenseAgreementUrl = "${license_agreement_url}";
var requiresLicenseAgreementMsg = "${_('You need to accept the license first') |n}"
</script>
% endif
</p>
% endif
% endif
% endif

0 comments on commit 60f73b1

Please sign in to comment.