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

Commit 6d56d0f

Browse files
committed
Merge branch 'master' of github.com:Graylog2/graylog2-web-interface
2 parents b2113fb + a8e557e commit 6d56d0f

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

app/assets/stylesheets/main.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,4 +2093,9 @@ textarea.textarea-xlarge {
20932093
left: auto;
20942094
margin-left: 10px;
20952095
right: 98%;
2096+
}
2097+
2098+
#add-existing-output {
2099+
position: relative;
2100+
top: -5px;
20962101
}

app/views/streams/outputs/index.scala.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,42 @@ <h1>
1515
<i class="icon icon-download-alt"></i>
1616
Outputs for Stream &raquo;@stream.getTitle&laquo;
1717
</h1>
18-
Graylog2 nodes can forward messages of this stream via outputs. Launch or terminate as many outputs as you want here.
19-
You can also reuse outputs for other streams. A global view of all configured outputs is <a href="@routes.OutputsController.index()">here</a>.
18+
Graylog2 nodes can forward messages of streams via outputs. Launch or terminate as many outputs as you want here.
19+
You can also reuse outputs that are already running for other streams.
20+
21+
A global view of all configured outputs is available <a href="@routes.OutputsController.index()">here</a>.
22+
23+
<br />
24+
<i>Removing</i> an output removes it from this stream but is still in the list of available outputs
25+
and <i>terminating</i> will stop it for all streams and remove it from all configurations and lists
26+
completely.
2027
</div>
2128

2229
@if(isPermitted(OUTPUTS_CREATE)) {
2330
<div class="output-new">
2431
<select id="input-type">
25-
<option selected disabled>-- Select new output type --</option>
32+
<option selected disabled>Select type of new output</option>
2633
@for((inputType,info) <- availableOutputs.toSeq.sortBy(_._2.name)) {
2734
<option value="@inputType">@info.name</option>
2835
}
2936
</select>
3037

31-
<button id="configure-input" class="btn btn-success">Launch new input</button>
38+
<button id="configure-input" class="btn btn-success">Launch new Output</button>
3239
</div>
3340

3441
@views.html.system.outputs.partials.output_creation_forms.render(availableOutputs, routes.StreamOutputsController.create(stream.getId))
3542
}
36-
@if(isPermitted(STREAM_OUTPUTS_CREATE)) {
43+
@if(isPermitted(STREAM_OUTPUTS_CREATE) && otherOutputs.size > 0) {
3744
<div class="output-add">
3845
@helper.form(routes.StreamOutputsController.add(stream.getId)) {
3946
<select name="outputId">
4047
@if(otherOutputs.size > 0) {
41-
<option selected disabled>-- Select existing output --</option>
48+
<option selected disabled>Select existing output</option>
4249
@for(output <- otherOutputs.toSeq.sortBy(_.getTitle)) {
4350
<option value="@output.getId">@output.getTitle</option>
4451
}
4552
} else {
46-
<option disabled>-- No outputs available --</option>
53+
<option disabled>No outputs available</option>
4754
}
4855
</select>
4956

@@ -60,7 +67,7 @@ <h2><i class="icon icon-cogs"></i> Configured outputs</h2>
6067
@views.html.system.outputs.partials.output_summary.render(output, stream)
6168
}
6269
} else {
63-
<div class="alert alert-info">There are no outputs for this stream. All messages will go to the default output only</div>
70+
<div class="alert alert-info">There are no outputs for this stream. All messages will go to the default output only.</div>
6471
}
6572
</div>
6673
}

app/views/system/outputs/partials/output_creation_forms.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
1010
<h2>
1111
<i class="icon-signin"></i>
12-
Launch new input: <em>@info.name</em>
12+
Launch new output: <em>@info.name</em>
1313
</h2>
1414
</div>
1515

@@ -20,7 +20,7 @@ <h2>
2020
<div class="modal-body">
2121

2222
<label>Title</label>
23-
<span class="help-block">Select a name of your new input that describes it.</span>
23+
<span class="help-block">Select a name of your new output that describes it.</span>
2424
<input name="title" required="true" type="text" class="input-xlarge">
2525

2626
@for(field <- info.getRequestedConfiguration) {

app/views/system/outputs/partials/output_summary.scala.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
&nbsp;
1212
@if(stream != null && isPermitted(STREAM_OUTPUTS_DELETE)) {
1313
<form action="@routes.StreamOutputsController.remove(stream.getId, output.getId)" method="POST">
14-
<button class="btn btn-danger btn-mini"
14+
<button class="btn btn-warning btn-mini"
1515
type="submit"
16-
data-confirm="Really remove output from stream?">
17-
Remove
16+
data-confirm="Really remove output from stream?"
17+
>
18+
Remove from stream
1819
</button>
1920
</form>
2021
}

0 commit comments

Comments
 (0)