forked from mozilla/zamboni
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
495 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 23 additions & 26 deletions
49
apps/addons/templates/addons/includes/collection_add_widget.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
<div class="collection-add widget collection{{ ' condensed tooltip' if condensed else '' }}" | ||
<a class="collection-add widget collection{{ ' condensed tooltip' if condensed else '' }}" | ||
data-listurl="{{ url('collections.ajax_list') }}" | ||
data-addurl="{{ url('collections.ajax_add') }}" | ||
data-removeurl="{{ url('collections.ajax_remove') }}" | ||
data-newurl="{{ url('collections.ajax_new') }}" | ||
data-addonid="{{ addon.id }}" | ||
title="{{ _('Add to collection') if condensed }}" | ||
href="#" | ||
> | ||
{% if condensed %} | ||
<a class="collection" href="#" title="{{ _('Add to collection') }}"><span></span></a> | ||
{% else %} | ||
<span><a class="collection" href="#" title="{{ _('Add to collection') }}"> | ||
{{ _('Add to collection') }}</a></span> | ||
{% endif %} | ||
<div class="popup-shim"> | ||
<div class="collection-add-dropdown popup{{ ' left' if condensed else '' }}"> | ||
{% if user.is_anonymous() %} | ||
<div class="collection-add-login"> | ||
<p>{% trans %} | ||
To create your own collections, you must have a Mozilla Add-ons account. | ||
{% endtrans %}</p> | ||
<p class="register-button"> | ||
<a class="button" href="{{ remora_url('users/register') }}">{{ _('Create an Add-ons Account') }}</a> | ||
</p> | ||
<p> | ||
{% trans login=login_link() %} | ||
or <a href="{{ login }}">log in to your current account</a> | ||
{% endtrans %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{{ _('Add to collection') if not condensed }} | ||
</a> | ||
<div class="hidden"> | ||
<div class="collection-add-dropdown popup{{ ' left' if condensed else '' }}"> | ||
{% if user.is_anonymous() %} | ||
<div class="collection-add-login"> | ||
<p>{% trans %} | ||
To create your own collections, you must have a Mozilla Add-ons account. | ||
{% endtrans %}</p> | ||
<p class="register-button"> | ||
<a class="button" href="{{ remora_url('users/register') }}">{{ _('Create an Add-ons Account') }}</a> | ||
</p> | ||
<p> | ||
{% trans login=login_link() %} | ||
or <a href="{{ login }}">log in to your current account</a> | ||
{% endtrans %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
{% set text = faved_text if is_favorite else unfaved_text %} | ||
{% set title = _('Remove from favorites') if is_favorite else _('Add to favorites') %} | ||
<div class="addon-favorite widget {{ faved_class }}{{ ' condensed tooltip' if condensed else '' }}" | ||
<a class="favorite widget {{ faved_class }}{{ ' condensed tooltip' if condensed else '' }}" | ||
data-addonid="{{ addon.id }}" | ||
data-addurl="{{ add_url }}" | ||
data-removeurl="{{ remove_url }}" | ||
data-favedtext="{{ faved_text }}" | ||
data-unfavedtext="{{ unfaved_text }}" | ||
title="{{ title if condensed }}" | ||
href="#" | ||
> | ||
{% if condensed %} | ||
<span class="msg" title="{{ title }}">{{ text }}</span> | ||
{% else %} | ||
<span><a class="msg" href="#" title="{{ title }}"> | ||
{{ text }}</a></span> | ||
{% endif %} | ||
</div> | ||
{{ text if not condensed }} | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.