| 1 | <!--makes a map for the specific floor given their position for each floor--> |
|---|
| 2 | |
|---|
| 3 | {% ifequal floor "1" %} |
|---|
| 4 | <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor1_small_nonodes.jpg"/> |
|---|
| 5 | {% for node in floor_list.0 %} |
|---|
| 6 | {% for node_top, node_left in node_position_1 %} |
|---|
| 7 | {% if node and forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 8 | <a id="node" href="javascript:loadNode({{node}});"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> |
|---|
| 9 | {% else %} |
|---|
| 10 | {% if forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 11 | <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> |
|---|
| 12 | {% endif %} |
|---|
| 13 | {% endif %} |
|---|
| 14 | {% endfor %} |
|---|
| 15 | {% endfor %} |
|---|
| 16 | {% endifequal %} |
|---|
| 17 | {% ifequal floor "2" %} |
|---|
| 18 | <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor2_small_nonodes.jpg"/> |
|---|
| 19 | {% for node in floor_list.1 %} |
|---|
| 20 | {% for node_top, node_left in node_position_2 %} |
|---|
| 21 | {% if node and forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 22 | <a id="node" href="javascript:loadNode({{node}});"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> |
|---|
| 23 | {% else %} |
|---|
| 24 | {% if forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 25 | <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> |
|---|
| 26 | {% endif %} |
|---|
| 27 | {% endif %} |
|---|
| 28 | {% endfor %} |
|---|
| 29 | {% endfor %} |
|---|
| 30 | {% endifequal %} |
|---|
| 31 | {% ifequal floor "3" %} |
|---|
| 32 | <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor3_small_nonodes.jpg"/> |
|---|
| 33 | {% for node in floor_list.2 %} |
|---|
| 34 | {% for node_top, node_left in node_position_3 %} |
|---|
| 35 | {% if node and forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 36 | <a id="node" href="javascript:loadNode({{node}});"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> |
|---|
| 37 | {% else %} |
|---|
| 38 | {% if forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 39 | <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> |
|---|
| 40 | {% endif %} |
|---|
| 41 | {% endif %} |
|---|
| 42 | {% endfor %} |
|---|
| 43 | {% endfor %} |
|---|
| 44 | {% endifequal %} |
|---|
| 45 | {% ifequal floor "4" %} |
|---|
| 46 | <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor4_small_nonodes.jpg"/> |
|---|
| 47 | {% for node in floor_list.3 %} |
|---|
| 48 | {% for node_top, node_left in node_position_4 %} |
|---|
| 49 | {% if node and forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 50 | <a id="node" href="javascript:loadNode({{node}});"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> |
|---|
| 51 | {% else %} |
|---|
| 52 | {% if forloop.counter0 == forloop.parentloop.counter0 %} |
|---|
| 53 | <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> |
|---|
| 54 | {% endif %} |
|---|
| 55 | {% endif %} |
|---|
| 56 | {% endfor %} |
|---|
| 57 | {% endfor %} |
|---|
| 58 | {% endifequal %} |
|---|