Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit 9e18e6e

Browse files
committed
add help bubbles for load balancer status display
add top/left params to the partial so we can move the bubble with text around, otherwise the position won't work out on each page issue #718
1 parent 93f4fb8 commit 9e18e6e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

app/views/partials/support/head_bubble.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
@(link: String)
1+
@(link: String, top: Int = 10, left: Int = 0)
22

33
<a href="http://support.torch.sh/help/kb/@link"
44
class="pull-right"
5-
style="position: relative; top: 10px;"
5+
style="position: relative; top: @{top}px; left: @{left}px;"
66
target="_blank">
77

88
<i class="icon icon-lightbulb"></i>

app/views/system/nodes/index.scala.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,13 @@ <h3>
141141
<span class="label label-success node-state" data-toggle="tooltip" title="Marked as ALIVE for load balancers">
142142
lb:ALIVE
143143
</span>
144+
<span style="margin-left: 4px">@partials.support.bubble("graylog2-server/load-balancer-status")</span>
145+
144146
} else {
145147
<span class="label label-important node-state" data-toggle="tooltip" title="Marked as DEAD for load balancers">
146148
lb:DEAD
147149
</span>
150+
<span style="margin-left: 4px">@partials.support.bubble("graylog2-server/load-balancer-status")</span>
148151
}
149152
</h3>
150153

app/views/system/nodes/show.scala.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h1><i class="icon icon-sitemap"></i> Node @node.getHostname / @node.getShortNod
3838
<div class="alert alert-info">
3939
<i class="icon icon-retweet"></i> &nbsp; Lifecycle state:
4040
<strong>@node.getLifecycle</strong>
41+
<span class="pull-right">@partials.support.head_bubble("graylog2-server/load-balancer-status", 0, 19)</span>
4142
</div>
4243
</div>
4344

@@ -46,12 +47,14 @@ <h1><i class="icon icon-sitemap"></i> Node @node.getHostname / @node.getShortNod
4647
<div class="row-fluid">
4748
<div class="alert alert-success">
4849
<i class="icon icon-heart"></i> &nbsp; Marked as <strong>ALIVE</strong> for load balancers.
50+
<span class="pull-right">@partials.support.head_bubble("graylog2-server/load-balancer-status", 0, 19)</span>
4951
</div>
5052
</div>
5153
} else {
5254
<div class="row-fluid">
5355
<div class="alert alert-error">
5456
<i class="icon icon-heart"></i> &nbsp; Marked as <strong>DEAD</strong> for load balancers.
57+
<span class="pull-right">@partials.support.head_bubble("graylog2-server/load-balancer-status", 0, 19)</span>
5558
</div>
5659
</div>
5760
}

0 commit comments

Comments
 (0)