Skip to content

Commit

Permalink
Merge pull request #363 from wikimedia/ahmed-arb/update-license-text
Browse files Browse the repository at this point in the history
feat: update share alike license text
  • Loading branch information
ahmed-arb authored Oct 16, 2023
2 parents 176b1d7 + 3d36cc5 commit 1d4242e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cms/templates/js/license-selector.underscore
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@
<% _.each(enabled, function(option) { %>
<span class="sr"><%- license.options[option.toUpperCase()].name %>&nbsp;</span><span aria-hidden="true" class="icon-cc-<%- option %>"></span>
<% }); %>
<span class="license-text"><%- gettext("Some Rights Reserved") %></span>
<% if (enabled.includes('sa')) {%>
<span class="license-text"><%- gettext(`CC-by-sa ${version}`) %></span>
<%} else {%>
<span class="license-text"><%- gettext("Some Rights Reserved") %></span>
<% } %>
<% } %>
<% } else { %>
<%- typeof licenseString == "string" ? licenseString : "" %>
Expand Down

0 comments on commit 1d4242e

Please sign in to comment.