Revision 7d408f6f

b/flowspec/admin.py
17 17
        self.message_user(request, "Added request %s to job que. Check in a while for result" % response)
18 18
    deactivate.short_description = "Remove selected routes from network"
19 19

  
20
    list_display = ('name', 'status', 'applier' , 'applier_peer', 'get_match', 'get_then', 'response')
20
    list_display = ('name', 'status', 'applier' , 'applier_peer', 'get_match', 'get_then', 'response', "expires", "comments")
21

  
21 22
    fieldsets = [
22 23
        (None,               {'fields': ['name','applier']}),
23 24
        ("Match",               {'fields': ['source', 'sourceport', 'destination', 'destinationport', 'port']}),
b/flowspec/models.py
107 107
    
108 108
    class Meta:
109 109
        db_table = u'route'
110
        verbose_name = "Rule"
111
        verbose_name_plural = "Rules"
110 112
    
111 113
    def save(self, *args, **kwargs):
112 114
        if not self.pk:
b/templates/user_routes.html
140 140
	<th>{% trans "Name" %}</th>
141 141
	<th>{% trans "Match" %}</th>
142 142
	<th style="text-align: center;">{% trans "Then" %}</th>
143
	<th style="text-align: center;">{% trans "Status" %}</th>
143
	<th style="text-align: center; ">{% trans "Status" %}</th>
144 144
	{% comment %}<th style="text-align: center;">{% trans "Details" %}</th>{% endcomment %}
145 145
	<th style="text-align: center;">{% trans "Applier" %}</th>
146 146
	<th style="text-align: center;">{% trans "Expires" %}</th>
......
157 157
	<td>{{ route.name }}</td>
158 158
	<td>{{ route.get_match|safe|escape }}</td>
159 159
	<td style="text-align: center;">{{route.get_then|safe|escape}}</td>
160
	<td style="text-align: center;">{{route.status}}</td>
160
	<td style="text-align: center; ">{{route.status}}</td>
161 161
	{% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %}
162 162
	<td style="text-align: center;">{{ route.applier }}</td>
163 163
	<td style="text-align: center;">{{ route.expires }}</td>
164 164
	<td style="text-align: center;">{{ route.response }}</td>
165
	<td style="text-align: center; width:140px;">
165
	<td style="text-align: center; width:150px;">
166 166
		{% ifequal route.status 'ACTIVE' %}
167 167
		<a href="{% url edit-route route.name %}" class="edit_button" id="edit_button_{{route.pk}}">Edit</a> 
168 168
		<button class="del_button" id="{{route.name}}" onclick="javascript:delete_route(this.id)">Del</button>

Also available in: Unified diff