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.
Bug 579086, Add to collections widget styling and JS
- Loading branch information
Showing
10 changed files
with
178 additions
and
59 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
29 changes: 29 additions & 0 deletions
29
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="collection-add" | ||
data-listurl="{{ url('collections.ajax_list') }}" | ||
data-addurl="{{ url('collections.ajax_add') }}" | ||
data-removeurl="{{ url('collections.ajax_remove') }}" | ||
data-newurl="{{ url('collections.ajax_new') }}" | ||
> | ||
<span><a href="#">Add to collection</a></span> | ||
</div> | ||
<div class="collection-add-dropdown install-note"> | ||
{% if user.is_anonymous() %} | ||
<div class="collection-add-login"> | ||
<p> | ||
{% trans %} | ||
To create your own collections, you must have an 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> |
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,12 +1,12 @@ | ||
{% if collections %} | ||
<ul id="ajax_collections_list"> | ||
<ul id="ajax_collections_list" class="addon-collections"> | ||
{% for collection in collections %} | ||
<li {{ collection.has_addon|class_selected(True) }} | ||
data-id="{{ collection.id }}"> | ||
{{ collection.name }} | ||
<span class="collectionitem">{{ collection.name }}</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
<p id="ajax_new_collection">{{ _('Start a new collection...') }}</p> | ||
<p id="ajax_new_collection"><a href="#">{{ _('Start a new collection...') }}</a></p> |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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