Skip to content

Language dropdown not working, also fixes multiple file selection #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 18, 2019

Conversation

jwcooper
Copy link
Member

@jwcooper jwcooper commented Mar 18, 2019

  • Fixes language dropdown selection.
  • Fixes language selection for multiple files.
  • Fixes auto-loading of locale for setting language.

@@ -65,7 +65,7 @@ <h3>CircuitPython {{ version.version }}</h3>
</label>
<div class="download-buttons">
{% for file in version.files['en_US'] %}
<a class="download-button-{{stable}}" href="{{ file }}">DOWNLOAD {{ file | slice: -4, 4 | upcase }} NOW <i class="fas fa-download"></i></a>
<a class="download-button {% if version.stable %}stable{% else %}unstable{% endif %} {{ file | slice: -3, 3 }}" href="{{ file }}">DOWNLOAD {{ file | slice: -4, 4 | upcase }} NOW <i class="fas fa-download"></i></a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a - after download-button to match the old version?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it used anywhere? I didn't find a reference to it anywhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I know of. Just thought it was since it was in there.

@jwcooper jwcooper requested a review from tannewt March 18, 2019 19:33
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@tannewt tannewt merged commit 4001f27 into adafruit:master Mar 18, 2019
@jwcooper jwcooper deleted the language-select-fixes branch March 18, 2019 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants