|
116 | 116 | {% for row_package in packages %} |
117 | 117 | {% set row = loop.index0 %} |
118 | 118 | <tr> |
119 | | - <td><font face="verdana">{{ row_package.friendly_name }}</font>{% if results.has_issues(row_package) %} |
| 119 | + <td><font face="verdana">{{ row_package.friendly_name }}</font> |
| 120 | + {% if results.has_issues(row_package) %} |
120 | 121 | {% set issues = results.deprecated_deps[row_package.friendly_name][0] %} |
121 | 122 | <img class="warning-img" class="dialog" onclick="showIssues('{{ row_package.friendly_name|safe }}', '{{ issues|replace('\'', '\\\'')|safe }}')" src="https://www.gstatic.com/images/icons/material/system/1x/warning_amber_18dp.png"> |
122 | 123 | <div id="{{ row_package.friendly_name }}" class="dialog" title="{{ row_package.friendly_name }}"></div> |
123 | | - {% endif %}</td> |
124 | | - {% for col_package in packages %} |
125 | | - {% set column = loop.index0 %} |
126 | | - {% if column <= row %} |
127 | | - {% set result = results.get_result(row_package, col_package) %} |
128 | | - {% set cellName = row | string + '-' + column | string %} |
129 | | - {% set bgColorName = result.status_type | lower %} |
130 | | - {% if result.pairwise_compatibility_check | length > 0 %} |
131 | | - {% set pairwise_status = result.pairwise_compatibility_check[0].status %} |
132 | | - {% set pairwise_details = result.pairwise_compatibility_check[0].details %} |
133 | 124 | {% endif %} |
134 | | - {% if result.self_compatibility_check | length > 0 %} |
135 | | - {% set self_1_status = result.self_compatibility_check[0].status %} |
136 | | - {% set self_1_details = result.self_compatibility_check[0].details %} |
137 | | - {% if result.self_compatibility_check | length > 1 %} |
138 | | - {% set self_2_status = result.self_compatibility_check[1].status %} |
139 | | - {% set self_2_details = result.self_compatibility_check[1].details %} |
| 125 | + </td> |
| 126 | + {% for col_package in packages %} |
| 127 | + {% set column = loop.index0 %} |
| 128 | + {% if column <= row %} |
| 129 | + {% set result = results.get_result(row_package, col_package) %} |
| 130 | + {% set cellName = row | string + '-' + column | string %} |
| 131 | + {% set bgColorName = result.status_type | lower %} |
| 132 | + {% if result.pairwise_compatibility_check | length > 0 %} |
| 133 | + {% set pairwise_status = result.pairwise_compatibility_check[0].status %} |
| 134 | + {% set pairwise_details = result.pairwise_compatibility_check[0].details %} |
140 | 135 | {% endif %} |
| 136 | + {% if result.self_compatibility_check | length > 0 %} |
| 137 | + {% set self_1_status = result.self_compatibility_check[0].status %} |
| 138 | + {% set self_1_details = result.self_compatibility_check[0].details %} |
| 139 | + {% if result.self_compatibility_check | length > 1 %} |
| 140 | + {% set self_2_status = result.self_compatibility_check[1].status %} |
| 141 | + {% set self_2_details = result.self_compatibility_check[1].details %} |
| 142 | + {% endif %} |
| 143 | + {% endif %} |
| 144 | + <td class="{{ bgColorName }}" onclick="showDialog( |
| 145 | + '{{ cellName|safe }}', '{{ result.status_type|safe }}', '{{ self_1_status|safe }}', '{{ self_2_status|safe }}','{{ pairwise_status|safe }}', '{{ self_1_details|replace('\n', ' ')|safe}}', '{{ self_2_details|replace('\n', ' ')|safe}}', '{{ pairwise_details|replace('\n', ' ')|safe }}')"> |
| 146 | + <div id="{{ cellName }}" class="dialog" title="{{ row_package.friendly_name }} and {{ col_package.friendly_name }}"> |
| 147 | + </div> |
| 148 | + </td> |
| 149 | + {% else %} |
| 150 | + <td><pre></pre></td> |
141 | 151 | {% endif %} |
142 | | - |
143 | | - <td class="{{ bgColorName }}" onclick="showDialog( |
144 | | - '{{ cellName|safe }}', '{{ result.status_type|safe }}', '{{ self_1_status|safe }}', '{{ self_2_status|safe }}','{{ pairwise_status|safe }}', '{{ self_1_details|replace('\n', ' ')|safe}}', '{{ self_2_details|replace('\n', ' ')|safe}}', '{{ pairwise_details|replace('\n', ' ')|safe }}')"> |
145 | | - <div id="{{ cellName }}" class="dialog" title="{{ row_package.friendly_name }} and {{ col_package.friendly_name }}"> |
146 | | - </div> |
147 | | - </td> |
148 | | - {% else %} |
149 | | - <td><pre></pre></td> |
150 | | - {% endif %} |
151 | 152 | {% endfor %} |
152 | 153 | </tr> |
153 | 154 | {% endfor %} |
|
0 commit comments