linuxfr.org
linuxfr.org copied to clipboard
bookmarks and links in news: replace flags with language description in French
As discussed in these two suivis:
- https://linuxfr.org/suivi/affichage-de-la-langue-des-liens
- https://linuxfr.org/suivi/les-langues-ne-devraient-pas-etre-indiquees-avec-des-drapeaux-de-pays
For links in news, it adds French language description before the hit counter if Language is not French.
For bookmarks, it does the same and it removes too the useless <ul>
HTML tag and directly set content with the link and the French language description.
I've just seen there's a little thing to adjust: when we add a link in the redaction, the text "en allemand" is only shown after a page reload. That's not blocking, but I think I'll have time today to fix it.
I've just seen there's a little thing to adjust: when we add a link in the redaction, the text "en allemand" is only shown after a page reload. That's not blocking, but I think I'll have time today to fix it.
Ok, I've just made changes on the CoffeeScript side, it works on my development environment, but it's first time I create a new .coffee
file and use sprocks.
I've tried to run rails assets:precompile
to ensure the import are well ordered on my development env, but I could have missed some things else ?