connector: small fixes

This commit is contained in:
Laurier Loiselle 2023-04-20 15:25:21 -04:00
parent 62e0d798ac
commit 1b9ba0b03f
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F
3 changed files with 5 additions and 4 deletions

View File

@ -6,9 +6,8 @@
<td> <td>
<table border="0" cellborder="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF"> <table border="0" cellborder="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
<tr> <tr>
<td> <td colspan="2"> <b> {{ designator }} </b> </td>
<b> {{ designator }} </b> <!-- <td> BOM: {{ bom_id }} </td> !-->
</td>
</tr> </tr>
</table> </table>
</td> </td>
@ -21,6 +20,7 @@
<td> {{ subtype }} </td> <td> {{ subtype }} </td>
{% if show_pincount %} <td > {{ pincount }}-pin </td> {% endif %} {% if show_pincount %} <td > {{ pincount }}-pin </td> {% endif %}
{% if color %} <td > {{ color }} </td> {% endif %} {% if color %} <td > {{ color }} </td> {% endif %}
{% if color %} {{ colors.colorbar_cells(color, color_len) }} {% endif %}
</tr> </tr>
</table> </table>
</td> </td>

View File

@ -8,7 +8,7 @@
<table border="0" cellborder="1" cellpadding="3" cellspacing="0"> <table border="0" cellborder="1" cellpadding="3" cellspacing="0">
<tr> <tr>
<td port="p1l"> {{ type }} </td> <td port="p1l"> {{ type }} </td>
<td > {{ subtype }} </td> {% if subtype %} <td > {{ subtype }} </td> {% endif %}
{% if show_pincount %} <td> {{ pincount }}-pin </td> {% endif %} {% if show_pincount %} <td> {{ pincount }}-pin </td> {% endif %}
{% if color %} <td > {{ color }} </td> {% endif %} {% if color %} <td > {{ color }} </td> {% endif %}
{% if color %} {{ colors.colorbar_cells(color, color_len, "p1r") }} {% endif %} {% if color %} {{ colors.colorbar_cells(color, color_len, "p1r") }} {% endif %}

View File

@ -70,6 +70,7 @@ def gv_node_connector(connector: Connector) -> Table:
'use_right': use_right, 'use_right': use_right,
'pins': pins, 'pins': pins,
'columns': columns, 'columns': columns,
'bom_id': connector.bom_entry.id,
# TODO: support asdict(connector) # TODO: support asdict(connector)
'type': html_line_breaks(connector.type), 'type': html_line_breaks(connector.type),
'subtype': html_line_breaks(connector.subtype), 'subtype': html_line_breaks(connector.subtype),