1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

_includes/license-overview.html: Fix validation errors.

Include the `id` only if `variation.tab-slug` is set.
This commit is contained in:
XhmikosR 2013-12-15 13:54:05 +02:00
parent f5aac12538
commit af57b063c0

View File

@ -20,7 +20,7 @@
</div> </div>
{% for variation in site.pages %} {% for variation in site.pages %}
{% if variation.category and variation.category == page.category %} {% if variation.category and variation.category == page.category %}
<div id="{{ variation.tab-slug }}" class="variation-tab variation-{{ variation.tab-slug }} js-variation-tab{% if page.tab-slug == variation.tab-slug %} active{% endif %}"> <div {% if variation.tab-slug %}id="{{ variation.tab-slug }}" {% endif %}class="variation-tab {% if variation.tab-slug %}variation-{{ variation.tab-slug }}{% endif %} js-variation-tab{% if page.tab-slug == variation.tab-slug %} active{% endif %}">
<table class="license-rules"> <table class="license-rules">
<tr> <tr>
{% assign types = "required|permitted|forbidden" | split: "|" %} {% assign types = "required|permitted|forbidden" | split: "|" %}
@ -50,4 +50,3 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>