зеркало из https://github.com/mozilla/bedrock.git
Revert "Merge branch 'master' of github.com:mozilla/bedrock"
This reverts commit1f2108d1f8
, reversing changes made tof3df06b2f8
.
This commit is contained in:
Родитель
1f2108d1f8
Коммит
2f01c99c32
|
@ -1,6 +1,7 @@
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
from views import marketplace
|
from views import marketplace
|
||||||
|
from bedrock_util import secure_required
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
(r'^$', marketplace),
|
(r'^$', secure_required(marketplace)),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import l10n_utils
|
import l10n_utils
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.validators import email_re
|
from django.core.validators import email_re
|
||||||
from bedrock_util import secure_required
|
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
|
|
||||||
import basket
|
import basket
|
||||||
|
@ -9,7 +8,6 @@ import basket
|
||||||
from mozorg.forms import NewsletterForm
|
from mozorg.forms import NewsletterForm
|
||||||
|
|
||||||
@csrf_exempt
|
@csrf_exempt
|
||||||
@secure_required
|
|
||||||
def marketplace(request):
|
def marketplace(request):
|
||||||
success = False
|
success = False
|
||||||
form = NewsletterForm(request.POST or None)
|
form = NewsletterForm(request.POST or None)
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
<aside id="{{ id }}" class="download-button {% block class %}download-button-large{% endblock %}">
|
<aside id="{{ id }}" class="download-button {% block class %}download-button-large{% endblock %}">
|
||||||
|
{% block noscript %}
|
||||||
|
<noscript>
|
||||||
|
{% include "mozorg/download_button_dumb.html" %}
|
||||||
|
</noscript>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block unsupported %}
|
{% block unsupported %}
|
||||||
<div class="unsupported-download">
|
<div class="unsupported-download">
|
||||||
{% include "mozorg/download_button_dumb.html" %}
|
{% include "mozorg/download_button_dumb.html" %}
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.download-button {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
ul#benefits {
|
ul#benefits {
|
||||||
padding: 4px 0 24px 12px;
|
padding: 4px 0 24px 12px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -45,17 +49,12 @@ ul#benefits li span {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-button {
|
|
||||||
width: 300px;
|
.download-button small.download-other {
|
||||||
small.download-other {
|
color: #ffcf72;
|
||||||
|
a:link,
|
||||||
|
a:visited {
|
||||||
color: #ffcf72;
|
color: #ffcf72;
|
||||||
a:link,
|
|
||||||
a:visited {
|
|
||||||
color: #ffcf72;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.unsupported-download h4 {
|
|
||||||
color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,10 @@
|
||||||
|
|
||||||
// Product download buttons
|
// Product download buttons
|
||||||
|
|
||||||
|
.download-button .unsupported-download {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.download-button {
|
.download-button {
|
||||||
.inline-block;
|
.inline-block;
|
||||||
ul {
|
ul {
|
||||||
|
@ -201,17 +205,11 @@ li.os_android,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-button .unsupported-download {
|
.other .download-button .unsupported-download {
|
||||||
display: none;
|
display: block;
|
||||||
}
|
|
||||||
|
|
||||||
.no-js,
|
|
||||||
.other {
|
|
||||||
.download-button .unsupported-download {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.download-button noscript,
|
||||||
.download-button .unsupported-download {
|
.download-button .unsupported-download {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
h4 {
|
h4 {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче