Skip to content

Commit

Permalink
Merge pull request #5 from AllSpiceIO/develop
Browse files Browse the repository at this point in the history
Fixed category div placement in template
  • Loading branch information
polypour authored Aug 10, 2024
2 parents 600ea54 + e8ebe08 commit 238c248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions report_template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
{% for part in bom %}
<div style="margin-bottom: 20px;">
<div style="width: 48px;margin-left: 30px;color: var(--bs-emphasis-color);background: var(--bs-gray-500);text-align: center;height: 26px;"><span style="font-size: 12px;background: var(--bs-gray-500);height: 0px;">{{ loop.index }}</span></div>
<div class="row" style="margin-right: 0px;margin-left: 0px;border-color: var(--bs-gray-400);">
<div class="col" style="padding-left: initial;"><span style="font-size: 12px;font-weight: bold;padding-left: 13px;">{{ part.categories|join(" > ") }}</span></div>
</div>
{% if 'Obsolete' == part.lifecycle_status %}
<div style="margin-left: 30px;margin-right: 30px;border-style: solid;border-color: var(--bs-red);border-radius: 3px;padding-bottom: 0px;">
{% elif 'Not For New Designs' == part.lifecycle_status %}
<div style="margin-left: 30px;margin-right: 30px;border-style: solid;border-color: var(--bs-red);border-radius: 3px;padding-bottom: 0px;">
{% else %}
<div style="margin-left: 30px;margin-right: 30px;border-style: solid;border-color: var(--bs-gray-500);border-radius: 3px;padding-bottom: 0px;">
{% endif %}
<div class="row" style="margin-right: 0px;margin-left: 0px;border-color: var(--bs-gray-400);">
<div class="col" style="padding-left: initial;"><span style="font-size: 12px;font-weight: bold;padding-left: 13px;">{{ part.categories|join(" > ") }}</span></div>
</div>
<div class="row" style="font-size: 12px;color: rgb(255,255,255);margin-right: 0px;margin-left: 0px;">
<div class="col" style="background: var(--bs-secondary-text-emphasis);padding-top: 5px;padding-bottom: 5px;"><span>{{ part.associated_refdes }}</span></div>
</div>
Expand Down

0 comments on commit 238c248

Please sign in to comment.