-
Notifications
You must be signed in to change notification settings - Fork 73
/
_service_top_traffic.html.slim
28 lines (25 loc) · 1.2 KB
/
_service_top_traffic.html.slim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
article.DashboardWidget id = widget.id
h1.DashboardWidget-title Top Applications
span.DashboardWidget-intro Apps with consistently high traffic in the last 30 days
- if widget.loaded?
- if widget.items.present?
ol.DashboardWidgetList
- widget.items.each do |item|
li class="DashboardWidgetList-item DashboardWidgetList-item--#{item.state}"
= link_to (application = item.application) ? admin_service_application_path(application.service, application) : '#', class: 'DashboardWidgetList-link' do
span.DashboardWidgetList-position
=> item.position
span.DashboardWidgetList-change title=item.title
=> item.change
=> item.name
' by
= item.account_name
- else
p
' In order to show Top Applications you need to have at least one application sending traffic to the #{friendly_service_name(service)}.
p
' Consider
=> link_to 'making some test calls', edit_admin_service_integration_path(widget.params['service_id'], :anchor => 'staging')
| from the Integration page to get a feel for what you'd see here.
- else
= widget.spinner