Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors language translation link settings
- Strips whitespace around language code setting so any amount of spacing can be introduced into the settings and the app won’t silently not configure the language code URL properly. - Adds ability to remove all language links and the app won’t break. Ties into #483. - Edits language links code comments to be consistent with other settings in the settings file and adds a space after the colon in the settings to be consistent with Ruby style guide key/value styling.
- Loading branch information
1 parent
184af84
commit 780de8c
Showing
4 changed files
with
37 additions
and
34 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
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,5 +1,6 @@ | ||
%section#language-box | ||
%ul | ||
- SETTINGS[:language_links].each do |language_plus_code| | ||
%li | ||
= language_link_tag language_plus_code | ||
- if SETTINGS[:language_links].present? | ||
%section#language-box | ||
%ul | ||
- SETTINGS[:language_links].each do |language_plus_code| | ||
%li | ||
= language_link_tag language_plus_code |
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