mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +01:00
commit
e81fef583a
@ -18,7 +18,7 @@
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="{{ page.layout }} {{ page.class }}">
|
<body class="{{ page.layout }}{% if page.class %} {{ page.class }}{% endif %}">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
{% include breadcrumbs.html %}
|
{% include breadcrumbs.html %}
|
||||||
|
@ -1,50 +1,50 @@
|
|||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
|
||||||
<a href="#" data-clipboard-target="license-text" class="js-clipboard-button button">Copy license text to clipboard</a>
|
<a href="#" data-clipboard-target="license-text" class="js-clipboard-button button">Copy license text to clipboard</a>
|
||||||
<div class="how-to-apply">
|
<div class="how-to-apply">
|
||||||
<h5>How to apply this license</h5>
|
<h5>How to apply this license</h5>
|
||||||
<p>
|
<p>
|
||||||
{{ page.how }}
|
{{ page.how }}
|
||||||
</p>
|
</p>
|
||||||
{% if page.note %}
|
{% if page.note %}
|
||||||
<p class="note">
|
<p class="note">
|
||||||
<strong>Note: </strong> {{ page.note }}
|
<strong>Note: </strong> {{ page.note }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% if page.source %}
|
|
||||||
<div class="source">
|
|
||||||
<a href="{{ page.source }}">Source</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% 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: "|" %}
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
<h3>{{ type | capitalize }}</h3>
|
<h3>{{ type | capitalize }}</h3>
|
||||||
<ul class="license-{{ type }}">
|
<ul class="license-{{ type }}">
|
||||||
{% assign rules = site.rules[type] | sort: 'label' %}
|
{% assign rules = site.rules[type] | sort: 'label' %}
|
||||||
{% for rule_obj in rules %}
|
{% for rule_obj in rules %}
|
||||||
{% assign req = rule_obj.tag %}
|
{% assign req = rule_obj.tag %}
|
||||||
{% if page[type] contains req %}
|
{% if page[type] contains req %}
|
||||||
<li class="{{ req }}">{{ rule_obj.label }}</li>
|
<li class="{{ req }}">{{ rule_obj.label }}</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if page.using %}
|
{% if page.using %}
|
||||||
<div class="projects-with-license">
|
<div class="projects-with-license">
|
||||||
<h3>Who's using this license?</h3>
|
<h3>Who's using this license?</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for using in page.using %}
|
{% for using in page.using %}
|
||||||
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
|
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div><!-- /sidebar -->
|
</div> <!-- /sidebar -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user