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

Added description meta tag. #152

Merged
merged 3 commits into from
Nov 26, 2015
Merged

Added description meta tag. #152

merged 3 commits into from
Nov 26, 2015

Conversation

vidya-ram
Copy link
Member

No description provided.

@@ -2,6 +2,7 @@
{% from "baseframe/forms.html" import renderfield, renderform %}
{% from "comments.html" import commenttree %}
{% block title %}{{ proposal.title }} — {{ space.title }}{% endblock %}
{% block description %}{{ proposal.title }}{% if proposal.speaker %}{% trans %} by {% endtrans%}{{ proposal.speaker.pickername }}{% endif %}, {{ space.title }}{% endblock %}
Copy link
Member

Choose a reason for hiding this comment

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

The {% trans %} block has to be for the entire string. You can't assume all languages will have an equivalent for "by" that appears before the speaker's name.

However, you can't have an {% if %} inside it, so you have to move the if block out as well and repeat {% proposal.title %} under both if and else conditions.

jace added a commit that referenced this pull request Nov 26, 2015
@jace jace merged commit 2832b9e into master Nov 26, 2015
@jace jace deleted the add-description branch November 26, 2015 05:27
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