Skip to content
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

Hide the "Links" sidebar widget when there are no links. #2319

Merged
merged 2 commits into from
Jan 13, 2015

Conversation

Goutte
Copy link
Contributor

@Goutte Goutte commented Jan 11, 2015

Also, add the "Links" header to the translation mapping (en and fr).

I'm not sure how to add the 'sylius.frontend.menu.sidebar.links' translation to other languages, especially given that their mappings' indentations are inconsistent (sometimes 2 spaces, sometimes 4).

This PR is mostly a paper-cut fix, but I'm new to Sylius so... low hanging fruit and such...

Also, maybe the Links widget should be in his own block, to ease overriding ? I'm not sure how you envision this ; I'm new ! :)

Do tell me if you think this needs more work, I plan to spend some time on Sylius in the next couple of months.

Add the "Links" header to the translation mapping (en and fr).
@@ -87,6 +87,8 @@ sylius:
login: Connexion
logout: Déconnexion
register: Créer un compte
sidebar:
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be reverted. New translation are added only to en, then it's updated on Crowdin & if translated there, it's auto updated in repository (from time to time)...

@Goutte
Copy link
Contributor Author

Goutte commented Jan 13, 2015

@stloyd Ok, it's done !

What about a sidebar_links block wrapping the lot ?

pjedrzejewski pushed a commit that referenced this pull request Jan 13, 2015
Hide the "Links" sidebar widget when there are no links.
@pjedrzejewski pjedrzejewski merged commit 9a1d610 into Sylius:master Jan 13, 2015
@pjedrzejewski
Copy link
Member

Thanks Antoine! I'd not bother with fixing the current layout, because - http://sylius.org/blog/frontend-redesign-with-chilid-part-2

@Goutte
Copy link
Contributor Author

Goutte commented Jan 13, 2015

Oh, thanks for the link, I'll follow their progress ;)

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.

None yet

3 participants