Skip to content

Commit

Permalink
Reorganise the dependencies tab layout #138
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jul 24, 2024
1 parent b7076bd commit 0f0dafd
Showing 1 changed file with 12 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
<table class="table table-bordered table-hover table-md text-break">
<thead>
<tr>
<th>
{% trans 'Package URL' %}
</th>
<th style="min-width: 125px">
<span class="help_text" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ help_texts.for_package }}">
{% trans 'For package' %}
Expand All @@ -55,6 +52,9 @@
{{ filter_dependency.form.resolved_to_package }}
</div>
</th>
<th>
{% trans 'Package URL' %}
</th>
<th>
<span class="help_text" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ help_texts.scope }}">
{% trans 'Scope' %}
Expand Down Expand Up @@ -83,28 +83,17 @@
</th>
<th style="min-width: 105px">
<span class="help_text" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ help_texts.is_resolved }}">
{% trans 'Resolved' %}
{% trans 'Pinned' %}
</span>
<div class="float-end">
{{ filter_dependency.form.is_resolved }}
</div>
</th>
<th style="min-width: 82px">
<span class="help_text" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ help_texts.is_direct }}">
{% trans 'Direct' %}
</span>
<div class="float-end">
{{ filter_dependency.form.is_direct }}
</div>
</th>
</tr>
</thead>
<tbody class="text-break">
{% for dependency in page_obj.object_list %}
<tr class="{% cycle 'odd' '' %}">
<td title="{{ dependency.dependency_uid }}">
{{ dependency.package_url }}
</td>
<tr class="{% cycle 'odd' '' %}" title="{{ dependency.dependency_uid }}">
<td>
{% if dependency.for_package %}
<strong>
Expand All @@ -113,6 +102,8 @@
<div>
{{ dependency.for_package.license_expression_html|default_if_none:"" }}
</div>
{% else %}
Current product
{% endif %}
</td>
<td>
Expand All @@ -123,8 +114,13 @@
<div class="license-expression">
{{ dependency.resolved_to_package.license_expression_html|default_if_none:"" }}
</div>
{% else %}
Not resolved
{% endif %}
</td>
<td>
{{ dependency.package_url }}
</td>
<td>
{{ dependency.scope }}
</td>
Expand All @@ -140,9 +136,6 @@
<td>
{{ dependency.is_resolved|as_icon }}
</td>
<td>
{{ dependency.is_direct|as_icon }}
</td>
</tr>
{% empty %}
<tr>
Expand Down

0 comments on commit 0f0dafd

Please sign in to comment.