-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Replace the license property sprite (green/blue/red circles) with individual icons #1324
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ | |
| {% assign req = rule_obj.tag %} | ||
| {% if page[type] contains req %} | ||
| <li class="{{ req }}"> | ||
| <span class="license-sprite"></span> | ||
| <span class="license-marker">{% if type == "permissions" %}✓{% elsif type == "conditions" %}ⓘ{% else %}✕{% endif %}</span> | ||
| {{ rule_obj.label }} | ||
|
Comment on lines
+35
to
36
|
||
| </li> | ||
| {% endif %} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The marker glyph selection conditional is duplicated inline here (and also in other license templates). Consider computing the marker character once per
type(or extracting to an include) and rendering a variable instead to avoid having to keep multiple copies in sync.See below for a potential fix: