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

Language.html.jinja2: Remove hyperlink if None #75

Merged
merged 1 commit into from
Dec 1, 2018

Conversation

rajgoesout
Copy link
Member

Fixes #70

<a href = {{ language.grammar_file }}>
{{ m.show_grammar(language.grammar_file) }}
</a>
{% else %}
{{ m.show_grammar(language.grammar_file) }}
{% endif %}
Copy link
Member

Choose a reason for hiding this comment

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

Unlabeled control end tag

Origin: Jinja2Bear, Section: jinja2.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpo67x_gqp/templates/Language.html.jinja2
+++ b/tmp/tmpo67x_gqp/templates/Language.html.jinja2
@@ -20,7 +20,7 @@
         </a>  
         {% else %}
           {{ m.show_grammar(language.grammar_file) }}
-        {% endif %}
+        {% endif %}{# if language.grammar_file #}
       </td>
     </tr>    
     <tr>

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@jayvdb
Copy link
Member

jayvdb commented Dec 1, 2018

ack 4cb511e

@jayvdb
Copy link
Member

jayvdb commented Dec 1, 2018

@gitmate-bot ff

@jayvdb
Copy link
Member

jayvdb commented Dec 1, 2018

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@jayvdb jayvdb merged commit 4cb511e into coala:master Dec 1, 2018
@jayvdb
Copy link
Member

jayvdb commented Dec 1, 2018

Automated fastforward with GitMate.io was successful! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants