connector: small fixes
This commit is contained in:
parent
62e0d798ac
commit
1b9ba0b03f
6
src/wireviz/templates/connector.html
generated
6
src/wireviz/templates/connector.html
generated
@ -6,9 +6,8 @@
|
||||
<td>
|
||||
<table border="0" cellborder="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF">
|
||||
<tr>
|
||||
<td>
|
||||
<b> {{ designator }} </b>
|
||||
</td>
|
||||
<td colspan="2"> <b> {{ designator }} </b> </td>
|
||||
<!-- <td> BOM: {{ bom_id }} </td> !-->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -21,6 +20,7 @@
|
||||
<td> {{ subtype }} </td>
|
||||
{% if show_pincount %} <td > {{ pincount }}-pin </td> {% endif %}
|
||||
{% if color %} <td > {{ color }} </td> {% endif %}
|
||||
{% if color %} {{ colors.colorbar_cells(color, color_len) }} {% endif %}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
2
src/wireviz/templates/simple-connector.html
generated
2
src/wireviz/templates/simple-connector.html
generated
@ -8,7 +8,7 @@
|
||||
<table border="0" cellborder="1" cellpadding="3" cellspacing="0">
|
||||
<tr>
|
||||
<td port="p1l"> {{ type }} </td>
|
||||
<td > {{ subtype }} </td>
|
||||
{% if subtype %} <td > {{ subtype }} </td> {% endif %}
|
||||
{% if show_pincount %} <td> {{ pincount }}-pin </td> {% endif %}
|
||||
{% if color %} <td > {{ color }} </td> {% endif %}
|
||||
{% if color %} {{ colors.colorbar_cells(color, color_len, "p1r") }} {% endif %}
|
||||
|
||||
@ -70,6 +70,7 @@ def gv_node_connector(connector: Connector) -> Table:
|
||||
'use_right': use_right,
|
||||
'pins': pins,
|
||||
'columns': columns,
|
||||
'bom_id': connector.bom_entry.id,
|
||||
# TODO: support asdict(connector)
|
||||
'type': html_line_breaks(connector.type),
|
||||
'subtype': html_line_breaks(connector.subtype),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user