-
{{ _('About this Collection') }}
- {% if c.description %}
-
{{ c.description }}
- {% elif c.type == amo.COLLECTION_MOBILE %}
-
{{ _('Add-ons synced to my Mobile Firefox using the Add-on Collector') }}
- {% endif %}
+
+
{{ _('About this Collection') }}
+ {% if c.description %}
+
{{ c.description }}
+ {% elif c.type == amo.COLLECTION_MOBILE %}
+
{{ _('Add-ons synced to my Mobile Firefox using the Add-on Collector') }}
+ {% endif %}
+
+ {{ _('More Options:') }}
+ {% if c.publishable_by(user) %}
+ {{ _('Edit Collection') }}
+ {% if collection.owned_by(user) %}
+ {{ _('Delete Collection') }}
+ {% endif %}
+ {% endif %}
+
+
-
-
- {% trans num=addons.paginator.count %}
- {{ num }} Add-on in this Collection
- {% pluralize %}
- {{ num }} Add-ons in this Collection
- {% endtrans %}
-
-
- {% cache addons.object_list %}
- {% if c.all_personas %}
+{% cache addons.object_list %}
+ {% if c.all_personas %}
+
+
+ {% trans num=addons.paginator.count %}
+ {{ num }} Persona in this Collection
+ {% pluralize %}
+ {{ num }} Personas in this Collection
+ {% endtrans %}
+
{{ persona_grid(addons.object_list) }}
- {% else %}
+
+ {% else %}
+
+
+ {% trans num=addons.paginator.count %}
+ {{ num }} Add-on in this Collection
+ {% pluralize %}
+ {{ num }} Add-ons in this Collection
+ {% endtrans %}
+
+
{{ addon_listing_items(addons.object_list, notes=notes.next()) }}
- {% endif %}
- {{ addons|paginator }}
- {% endcache %}
-
+
+ {% endif %}
+ {{ addons|paginator }}
+{% endcache %}
@@ -117,10 +134,12 @@
{% if author_collections %}
diff --git a/apps/bandwagon/views.py b/apps/bandwagon/views.py
index 8a7478c66f..623b45a791 100644
--- a/apps/bandwagon/views.py
+++ b/apps/bandwagon/views.py
@@ -230,7 +230,6 @@ def ajax_new(request):
if form.is_valid():
collection = form.save()
- CollectionUser(collection=collection, user=request.amo_user).save()
addon_id = request.REQUEST['addon_id']
a = Addon.objects.get(pk=addon_id)
collection.add_addon(a)
diff --git a/media/css/main.css b/media/css/main.css
index b0f153670b..b7aaaf855a 100644
--- a/media/css/main.css
+++ b/media/css/main.css
@@ -420,7 +420,8 @@ input.placeholder {
}
textarea {
- width: 99%;
+ width: 100%;
+ -moz-box-sizing: border-box;
display: block;
}
@@ -3052,10 +3053,6 @@ ol.pagination + .num-results {
float: right;
}
-.separated-listing .item h3 {
- float: none;
-}
-
.separated-listing form.item-sort {
float: right;
margin-top: -0.2em;
@@ -3065,8 +3062,12 @@ ol.pagination + .num-results {
float: left;
}
+.separated-listing .item img.icon {
+ overflow: hidden;
+}
+
.separated-listing .item .item-info {
- border: none;
+ border-left: 1px dashed #b4dfee;
margin-bottom: 2em;
}
@@ -3078,9 +3079,18 @@ ol.pagination + .num-results {
margin: 0;
}
+.separated-listing .item .persona-inner {
+ padding: 0;
+}
+
+.separated-listing .item .persona-large .persona-preview [data-browsertheme] {
+ height: 72px;
+}
+
.separated-listing blockquote {
margin-right: 11em;
clear: left;
+ overflow-x:hidden;
}
.separated-listing .item h4 {
@@ -3113,9 +3123,9 @@ ol.pagination + .num-results {
.separated-listing .item {
border: 1px solid #C9E8F3;
margin: 0 0 1em 0;
- -moz-border-radius:3px;
- -webkit-border-radius: 3px;
- border-radius:3px;
+ -moz-border-radius:8px;
+ -webkit-border-radius: 8px;
+ border-radius:8px;
}
.listing .item {
diff --git a/media/css/zamboni/zamboni.css b/media/css/zamboni/zamboni.css
index 20c3b5ce5d..9114f5165b 100644
--- a/media/css/zamboni/zamboni.css
+++ b/media/css/zamboni/zamboni.css
@@ -9,6 +9,7 @@
.article.version:after,
.article.review:after,
.grouped_ratings li:after,
+.bars:after,
#review-form p:after {
content: ".";
display: block;
@@ -32,7 +33,6 @@ li.usertag {
}
header {
- margin: 0 1em;
display: block;
}
@@ -2464,3 +2464,117 @@ h6.author, .author a {
.collections-contributors tr:hover a {
display: inline;
}
+
+.collections-personas .personas-grid {
+ border: 1px solid #C9E8F3;
+ padding: 1em;
+ margin: 0 0 1em 0;
+ -moz-border-radius: 8px;
+ -webkit-border-radius: 8px;
+ border-radius :8px;
+ background-color: #ffffff;
+ clear:both;
+}
+
+.featured div.meta {
+ margin-top: 0;
+}
+
+.meta li {
+ line-height: 2em;
+}
+
+.followers {
+ color: #37a632;
+}
+.followers span {
+ font-weight: bold;
+}
+
+.listing-footer .delete {
+ float: right;
+ color: red;
+}
+
+.tab-wrapper .content {
+ margin: 1em;
+}
+
+.tab-wrapper .listing-footer {
+ padding-top: .5em;
+ z-index: 0;
+}
+
+table#addons-list, table#contributors-list {
+ width: 100%;
+}
+#addons-list .comments {
+ display: none;
+}
+#addons-list tr {
+ border-top: 1px dotted #A5BFCE;
+}
+#addons-list tr:hover,
+.ui-state-hover {
+ background-color: #e4f5fb;
+}
+#addons-list td, #addons-list h3 {
+ line-height: 36px;
+ margin: 0;
+ padding: 0;
+}
+#addons-list img {
+ float: left;
+ margin: 2px 1em 0 0;
+}
+.ui-autocomplete {
+ background-color: #fff;
+ border: 1px solid black;
+ width: 300px;
+ z-index: 11;
+}
+.ui-autocomplete a {
+ display: block;
+ line-height: 32px;
+}
+#addons-list a.remove,
+#addons-list a.comment,
+#contributors-list a.remove {
+ cursor: pointer;
+ display: block;
+ width: 16px;
+ height: 16px;
+ margin: 10px;
+ text-indent: -9000px;
+ background-repeat: no-repeat;
+ background-image: url(../../img/zamboni/icons/collections.png);
+}
+#addons-list a.remove,
+#contributors-list a.remove {
+ background-position: 0 -250px;
+}
+#addons-list a.remove:hover,
+#contributors-list a.remove:hover,
+.collection-admin a.delete {
+ background-position: 0 -200px;
+}
+#addons-list a.comment {
+ background-position: 0 -800px;
+}
+
+.collection-admin {
+ font-weight: bold;
+ padding: .5em 1em;
+ margin-bottom: 0;
+ display: inline-block;
+}
+.collection-admin a {
+ background-repeat: no-repeat;
+ background-image: url(../../img/zamboni/icons/collections.png);
+ margin-left: 1em;
+ white-space: nowrap;
+ padding-left: 22px;
+}
+.collection-admin a.edit {
+ background-position: 0 -300px;
+}
diff --git a/media/img/zamboni/icons/collections.png b/media/img/zamboni/icons/collections.png
new file mode 100644
index 0000000000..c23dd0a1b1
Binary files /dev/null and b/media/img/zamboni/icons/collections.png differ