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

_includes/sidebar.html: fix indentation.

This commit is contained in:
XhmikosR 2013-10-31 12:32:36 +02:00
parent 7cc2ac5cb5
commit 322a1b0c74

View File

@ -1,50 +1,50 @@
<div class="sidebar">
<a href="#" data-clipboard-target="license-text" class="js-clipboard-button button">Copy license text to clipboard</a>
<div class="how-to-apply">
<h5>How to apply this license</h5>
<p>
{{ page.how }}
</p>
{% if page.note %}
<p class="note">
<strong>Note: </strong> {{ page.note }}
</p>
{% endif %}
</div>
{% if page.source %}
<div class="source">
<a href="{{ page.source }}">Source</a>
</div>
<div class="how-to-apply">
<h5>How to apply this license</h5>
<p>
{{ page.how }}
</p>
{% if page.note %}
<p class="note">
<strong>Note: </strong> {{ page.note }}
</p>
{% endif %}
</div>
{% if page.source %}
<div class="source">
<a href="{{ page.source }}">Source</a>
</div>
{% endif %}
<div class="license-rules license-rules-sidebar">
<div class="license-rules license-rules-sidebar">
{% assign types = "required|permitted|forbidden" | split: "|" %}
{% for type in types %}
<h3>{{ type | capitalize }}</h3>
<ul class="license-{{ type }}">
{% assign rules = site.rules[type] | sort: 'label' %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
{% if page[type] contains req %}
<li class="{{ req }}">{{ rule_obj.label }}</li>
{% endif %}
{% endfor %}
</ul>
{% assign types = "required|permitted|forbidden" | split: "|" %}
{% for type in types %}
<h3>{{ type | capitalize }}</h3>
<ul class="license-{{ type }}">
{% assign rules = site.rules[type] | sort: 'label' %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
{% if page[type] contains req %}
<li class="{{ req }}">{{ rule_obj.label }}</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
{% if page.using %}
<div class="projects-with-license">
<h3>Who's using this license?</h3>
<ul>
{% for using in page.using %}
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.using %}
<div class="projects-with-license">
<h3>Who's using this license?</h3>
<ul>
{% for using in page.using %}
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
</div><!-- /sidebar -->
</div> <!-- /sidebar -->