Revision 442e21b6 templates/user_routes.html
b/templates/user_routes.html | ||
---|---|---|
162 | 162 |
if (reg_exp == '') { |
163 | 163 |
reg_exp = '|' |
164 | 164 |
} |
165 |
|
|
166 |
|
|
165 | 167 |
oTable.fnFilter(reg_exp.slice(0, -1), 4, true); |
166 | 168 |
|
167 | 169 |
|
... | ... | |
262 | 264 |
|
263 | 265 |
<tr class="GradeC" > |
264 | 266 |
<td>{{ route.pk }}</td> |
265 |
<td><span {% if route.comments %} class="commentclass" style="border-bottom:1px dotted red;" title="{{route.comments}}" {% endif %}>{{ route.name }}</span></td> |
|
267 |
|
|
268 |
<td {% if route.comments %}style="color: #0088CC;"{% endif %}>{% if route.comments %}<span rel="tooltip" data-placement="top" title="{{route.comments}}">{{ route.name }}</span>{% else %}{{ route.name }}{% endif %}</td> |
|
269 |
|
|
266 | 270 |
<td>{{ route.get_match|safe|escape }}</td> |
271 |
|
|
267 | 272 |
<td style="text-align: center;">{{route.get_then|safe|escape}}</td> |
273 |
|
|
268 | 274 |
<td style="text-align: center; ">{% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} |
269 |
<a href="#" rel="tooltip" |
|
275 |
{% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}SUSPENDED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{{route.status}}{% endif %}</td> |
|
276 |
|
|
277 |
{% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %} |
|
278 |
|
|
279 |
<td style="text-align: center;">{{ route.applier }}</td> |
|
280 |
|
|
281 |
<td style="text-align: center;" nowrap> |
|
282 |
<span {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%}{% else %}{% if route.days_to_expire %} |
|
283 |
data-placement="top" |
|
284 |
rel = 'tooltip' |
|
285 |
style="border-bottom:1px dashed red;" |
|
286 |
title="Expires {% ifequal route.days_to_expire '0' %}today{% else%}in {{route.days_to_expire}} day{{ route.days_to_expire|pluralize }}{% endifequal %}" |
|
287 |
{% endif %}{% endif %}>{{ route.expires|date:"d M y" }}</span></td> |
|
288 |
|
|
289 |
<td style="text-align: center; {% if route.status == 'EXPIRED' %} color: #0088CC; {% endif %}"> |
|
290 |
{% if route.status == 'EXPIRED' %} |
|
291 |
<span rel="tooltip" |
|
270 | 292 |
{% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} |
271 | 293 |
data-placement="top" |
272 | 294 |
title = "{% ifequal route.status 'INACTIVE' %} |
... | ... | |
284 | 306 |
{% endifequal %} |
285 | 307 |
{% endifequal %} |
286 | 308 |
{% endifequal %}" |
287 |
{% endif %}>{% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}SUSPENDED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}</a> |
|
288 |
{% else %}{{route.status}}{% endif %}</td> |
|
289 |
{% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %} |
|
290 |
<td style="text-align: center;">{{ route.applier }}</td> |
|
291 |
<td style="text-align: center;"> |
|
292 |
<span {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%}{% else %}{% if route.days_to_expire %} |
|
293 |
class="expiresclass" |
|
294 |
style="border-bottom:2px dashed red;" |
|
295 |
title="Expires {% ifequal route.days_to_expire '0' %}today{% else%}in {{route.days_to_expire}} day{{ route.days_to_expire|pluralize }}{% endifequal %}" |
|
296 |
{% endif %}{% endif %}>{{ route.expires }}</span></td> |
|
297 |
<td style="text-align: center;">{% if route.status == 'EXPIRED' %}{% trans "Rule expired" %}{% else %}{% if route.status == 'ADMININACTIVE' %}{% trans "Suspended by administrator" %}{% else %}{% if route.status == 'INACTIVE' %}{% trans "Suspended by user" %}{% else %}{{ route.response }}{% if route.status == 'PENDING' %}<img src="/fodstatic/dots.gif">{% endif %}{% endif %}{% endif %}{% endif %}</td> |
|
309 |
{% endif %}>{% trans "Rule expired" %}</span>{% else %}{% if route.status == 'ADMININACTIVE' %}{% trans "Suspended by administrator" %}{% else %}{% if route.status == 'INACTIVE' %}{% trans "Suspended by user" %}{% else %}{{ route.response }}{% if route.status == 'PENDING' %}<img src="/fodstatic/dots.gif">{% endif %}{% endif %}{% endif %}{% endif %}</td> |
|
310 |
|
|
298 | 311 |
<td style="text-align: center; width:180px;"> |
299 | 312 |
{% ifequal route.status 'ACTIVE' %} |
300 | 313 |
<a href="{% url edit-route route.name %}" class="edit_button btn btn-small" id="edit_button_{{route.pk}}">{% trans "Edit" %}</a> |
Also available in: Unified diff