diff --git a/appendix.md b/appendix.md index 1fef9f3..f0c596e 100644 --- a/appendix.md +++ b/appendix.md @@ -8,14 +8,15 @@ class: license-types All licenses described in the choosealicense.com [repository](https://github.com/github/choosealicense.com), in a table. - -{% assign types = "permissions|conditions|limitations" | split: "|" %} -{% for type in types %} - {% assign rules = site.data.rules[type] | sort: "label" %} - {% for rule_obj in rules %} - + + + {% assign types = "permissions|conditions|limitations" | split: "|" %} + {% for type in types %} + {% assign rules = site.data.rules[type] | sort: "label" %} + {% for rule_obj in rules %} + + {% endfor %} {% endfor %} -{% endfor %} {% for license in site.licenses | sort: 'path' %} @@ -24,7 +25,9 @@ All licenses described in the choosealicense.com [repository](https://github.com {% for rule_obj in rules %} {% endfor %} {% endfor %} diff --git a/assets/js/app.coffee b/assets/js/app.coffee index 1f578cb..2141598 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -38,11 +38,11 @@ class Choosealicense # Dynamically add annotations as title attribute to rule list items for ruletype, rules of window.annotations for rule in rules - $(".license-rules ul.license-#{ruletype} li.#{rule["tag"]}").attr "title", rule["description"] + $(".license-#{ruletype} .#{rule["tag"]}").attr "title", rule["description"] # Init tooltips on all rule list items for ruletype, label of @ruletypes - $(".license-#{ruletype} li").qtip + $(".license-#{ruletype} li, .license-#{ruletype} .license-sprite").qtip content: text: false title:
License{{ rule_obj.label }}
License{{ rule_obj.label }}
{{ license.title }}{% assign req = rule_obj.tag %} {% if license[type] contains req %} - + + + {% endif %}