Project

General

Profile

« Previous | Next » 

Revision 7cdaddab

Added by Shlomi Zadok over 8 years ago

fixes #12714 - Show proxy status in index, and create a show page for proxy

View differences:

app/views/smart_proxies/index.html.erb
<thead>
<tr>
<th class="col-md-2"><%= s_("SmartProxy|Name") %></th>
<th class="col-md-5"><%= s_("SmartProxy|Url") %></th>
<th class="col-md-3"><%= _("Features") %></th>
<th class="col-md-4"><%= s_("SmartProxy|Url") %></th>
<th class="col-md-4"><%= _("Features") %></th>
<th class="col-md-1"><%= _('Status') %></th>
<th></th>
</tr>
</thead>
<tbody>
<% for proxy in @smart_proxies %>
<tr>
<td class="display-two-pane ellipsis"><%= link_to_if_authorized proxy.name, hash_for_edit_smart_proxy_path(:id => proxy).merge(:auth_object => proxy, :authorizer => authorizer) %></td>
<td class="ellipsis"><%= proxy.url %></td>
<td class="ellipsis"><%= proxy.features.to_sentence %></td>
<tr class="proxy-show" data-url="<%= ping_smart_proxy_path(proxy) %>">
<td><%= link_to_if_authorized proxy.name, hash_for_smart_proxy_path(:id => proxy).merge(:auth_object => proxy, :authorizer => authorizer) %></td>
<td><%= proxy.url %></td>
<td><%= proxy.features.to_sentence %></td>
<td>
<span class="proxy-show-status"><%= spinner %></span>
</td>
<td><%= action_buttons(*proxy_actions(proxy, authorizer)) %></td>
</tr>
<% end %>

Also available in: Unified diff