-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved License Input and Details UI #450
* Set Input Textarea to 15 * Added file-upload into form * Changed <pre> to <textarea> in the details page * Modified Navigation Bar and Renamed Scan Again Button Signed-off-by: Akhil Raj <lf32.dev@gmail.com>
- Loading branch information
Showing
6 changed files
with
89 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
scantext/templates/scantext/includes/license_detail_card.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% for license in result.licenses %} | ||
<div class="licenses-card"> | ||
<div class="card-header is-flex is-justify-content-space-between"> | ||
<div class="card-header-title" title="{{ license.short_name }}"> | ||
{% if license.homepage_url %} | ||
<a href="{{ license.homepage_url }}" title="{{ license.name }} ({{ license.short_name }})">{{ license.short_name }}</a> {% else %} {{ license.short_name }} {% endif %} | ||
</div> | ||
<div class="is-flex is-justify-content-row is-align-items-center"> | ||
<p class="lines tag is-6 mx-1 is-light is-info"> | ||
{% if license.start_line == license.end_line %} Line {{ license.start_line }} {% else %} Lines {{ license.start_line }} - {{ license.end_line }} {% endif %} | ||
</p> | ||
<p class="tag is-6 mx-1 is-light | ||
{% if license.score == 100 %} is-success {% else %} is-warning {% endif %}">{{ license.score }}</p> | ||
<p class="card-header-icon" aria-label="more options"> | ||
<span class="icon"> | ||
<i class="fas fa-angle-down" aria-hidden="true"></i> | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="card-content is-hidden"> | ||
<div class="content"> | ||
<div class="is-flex is-justify-content-space-between"> | ||
<div> | ||
<p class="subtitle is-5">Matched Text</p> | ||
</div> | ||
<div> | ||
<p class="tag is-6 mx-1 is-light is-primary">{{ license.category }}</p> | ||
<a class="tag is-6 mx-1 is-light is-link" href="{{ license.reference_url }}">ref</a> | ||
<p class="tag is-6 mx-1 is-light is-info"> | ||
{% if license.start_line == license.end_line %} Line {{ license.start_line }} {% else %} Lines {{ license.start_line }} - {{ license.end_line }} {% endif %} | ||
</p> | ||
</div> | ||
</div> | ||
<textarea class="textarea has-fixed-size" rows="15" style="cursor: text;" disabled>{{ license.matched_text }}</textarea> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters