8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Modification esthetiques

This commit is contained in:
grisel-davy 2018-04-19 16:48:50 +02:00
parent 4e2f426c1d
commit e2f969f831

View file

@ -1,5 +1,5 @@
{% block graph_dot %} {% block graph_dot %}
digraph switchs { digraph Topologie {
node [ node [
fontname=Helvetica fontname=Helvetica
fontsize=8 fontsize=8
@ -12,44 +12,71 @@ edge[arrowhead=odot,arrowtail=dot]
subgraph cluster_{{ sub.bat_id }} { subgraph cluster_{{ sub.bat_id }} {
label="Batiment {{ sub.bat_name }}"; label="Batiment {{ sub.bat_name }}";
{% if sub.bornes %}
node [label=<
<TABLE BGCOLOR="{{ colors.back}}" BORDER="1" COLOR="#021f87" CELLBORDER="0" CELLSPACING="0">
<TH>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
<FONT FACE="Helvetica Bold" COLOR="white">Borne</FONT></TD>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
<FONT FACE="Helvetica Bold" COLOR="white">Switch</FONT></TD>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
<FONT FACE="Helvetica Bold" COLOR="white">Port</FONT></TD>
</TH>
{% block bornes %} {% block bornes %}
{% for borne in sub.bornes %} {% for borne in sub.bornes %}
node[label="{{borne.name}}"] {{borne.id}}; <TR>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
<FONT COLOR="{{ colors.texte }}" >{{ borne.name }}</FONT>
</TD>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
<FONT COLOR="{{ colors.texte }}" >{{ borne.switch }}</FONT>
</TD>
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
<FONT COLOR="{{ colors.texte }}" >{{ borne.port }}</FONT>
</TD>
</TR>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
</TABLE>
>] {{sub.bat_name}}bornes;
{% endif %}
{% block switchs %} {% block switchs %}
{% for switch in sub.switchs %} {% for switch in sub.switchs %}
node [label=< node [label=<
<TABLE BGCOLOR="palegoldenrod" BORDER="0" CELLBORDER="0" CELLSPACING="0"> <TABLE BGCOLOR="{{ colors.back }}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="olivedrab4"> <TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head }}">
<FONT FACE="Helvetica Bold" COLOR="white"> <FONT FACE="Helvetica Bold" COLOR="white">
{{ switch.name }} {{ switch.name }}
</FONT></TD></TR> </FONT></TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0"> <TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" >Modèle</FONT> <FONT COLOR="{{ colors.texte }}" >Modèle</FONT>
</TD> </TD>
<TD ALIGN="LEFT"> <TD ALIGN="LEFT">
<FONT COLOR="#7B7B7B" >{{ switch.model }}</FONT> <FONT COLOR="{{ colors.texte }}" >{{ switch.model }}</FONT>
</TD></TR> </TD></TR>
<TR><TD ALIGN="LEFT" BORDER="0"> <TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" >Nombre de ports</FONT> <FONT COLOR="{{ colors.texte }}" >Taille</FONT>
</TD> </TD>
<TD ALIGN="LEFT"> <TD ALIGN="LEFT">
<FONT>{{ switch.nombre }}</FONT> <FONT COLOR="{{ colors.texte }}" >{{ switch.nombre }}</FONT>
</TD></TR> </TD></TR>
{% block liens %} {% block liens %}
{% for port in switch.ports %} {% for port in switch.ports %}
<TR><TD ALIGN="LEFT" BORDER="0"> <TR><TD ALIGN="LEFT" BORDER="0">
<FONT COLOR="#7B7B7B" >{{ port.numero }}</FONT> <FONT COLOR="{{ colors.texte }}" >{{ port.numero }}</FONT>
</TD> </TD>
<TD ALIGN="LEFT"> <TD ALIGN="LEFT">
<FONT>{{ port.related }}</FONT> <FONT COLOR="{{ colors.texte }}" >{{ port.related }}</FONT>
</TD></TR> </TD></TR>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
</TABLE> </TABLE>
>] {{ switch.id }} ; >] "{{ switch.id }}" ;
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
} }
@ -59,9 +86,9 @@ node [label=<
{% block isoles %} {% block isoles %}
{% for switchs in alone %} {% for switchs in alone %}
{{switchs.id}} [label=< "{{switchs.id}}" [label=<
<TABLE BGCOLOR="palegoldenrod" BORDER="0" CELLBORDER="0" CELLSPACING="0"> <TABLE BGCOLOR="{{ colors.back }}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
<TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="olivedrab4"> <TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head }}">
<FONT FACE="Helvetica Bold" COLOR="white"> <FONT FACE="Helvetica Bold" COLOR="white">
{{switchs.name}} {{switchs.name}}
</FONT></TD></TR> </FONT></TD></TR>