Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1236 from diox/add-all-countries
Browse files Browse the repository at this point in the history
Add all countries (bug 1058257)
  • Loading branch information
diox committed Jun 2, 2015
2 parents 1d1a731 + c3012e0 commit 8b18d3f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -14,7 +14,7 @@
"yulelog"
],
"dependencies": {
"marketplace-constants": "0.11.0",
"marketplace-constants": "0.12.0",
"marketplace-core-modules": "2.8.3",
"marketplace-elements": "0.7.0",
"marketplace-jquery": "2.0.2",
Expand Down
10 changes: 8 additions & 2 deletions src/media/css/account.styl
Expand Up @@ -67,12 +67,18 @@

span {
color: $greyscale-black;
margin: 0 0 0 8px;

+rtl() {
background-position: 100% 1px;
padding-right: 25px;
margin: 0 8px 0 0;
}
}

img {
height: 20px;
vertical-align: middle;
width: 20px;
}
}
.newsletter-info {
padding-left: 10px;
Expand Down
1 change: 0 additions & 1 deletion src/media/css/lib/index.styl
Expand Up @@ -9,7 +9,6 @@
@import 'spinner';

@import 'collection_colors';
@import 'regions';

desktop-h2() {
font-size: 40px;
Expand Down
17 changes: 0 additions & 17 deletions src/media/css/site.styl
Expand Up @@ -210,23 +210,6 @@ noscript {
animation: 0.9s spin 1 steps(30);
}

.region {
background-repeat: no-repeat;
background-size: 20px auto;
color: $medium-gray;
display: inline-block;
margin-top: 6px;
min-height: 20px;
overflow: visible;
padding: 2px 0 2px 28px;
text-overflow: normal;
}

for region in $regions
.region-{region} {
background-image: url(unquote('../img/icons/regions/' + region + '.png'));
}

@media $retina {
.spinner {
spinner-base-image('retina');
Expand Down
7 changes: 5 additions & 2 deletions src/media/js/views/debug.js
Expand Up @@ -127,8 +127,11 @@ define('views/debug',
filter: log.filter,
persistent_logs: log.persistent.all,
profile: compatFilter.featureProfile,
regions: (regions.REGION_SLUGS ||
Object.keys(regions.REGION_CHOICES_SLUG)).sort(),
regions: _.sortBy(utilsLocal.items(regions.REGION_CHOICES_SLUG),
function(r) {
return r[1];
}
),
recent_logs: log.get_recent(100),
request_cache: storage.getItem('request_cache') || {}
});
Expand Down
4 changes: 2 additions & 2 deletions src/templates/debug.html
Expand Up @@ -27,8 +27,8 @@ <h1>Debug</h1>
<select name="region" id="debug-region">
{% set user_region = user.get_setting('region_override') %}
<option value="" {{ 'selected' if not user_region }}>---</option>
{% for region in regions %}
<option value="{{ region }}" {{ 'selected' if region == user_region }}>
{% for code, region in regions %}
<option value="{{ code }}" {{ 'selected' if code == user_region }}>
{{ region }}</option>
{% endfor %}
</select>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/settings.html
Expand Up @@ -35,7 +35,7 @@ <h3>{{ _('General settings') }}</h3>
{% defer (url=anonApi('region', [user_helpers.region()])) %}
<div class="region account-field">
<label>{{ _('Region') }}</label>
<span class="region region-{{ this.slug }}">{{ this.name }}</span>
<img src="{{ media('/fireplace/img/icons/regions/' + this.slug + '.png') }}" alt=""><span>{{ this.name }}</span>
</div>
{% end %}

Expand Down

0 comments on commit 8b18d3f

Please sign in to comment.