whitespace cleanup (#547)

* whitespace

* start tbody correctly
This commit is contained in:
nick n
2019-03-23 10:28:43 +01:00
committed by Oliver Gorwits
parent 7ad712d79a
commit 3e5e7d36cc
21 changed files with 25 additions and 25 deletions

View File

@@ -421,7 +421,7 @@ L<DBIx::Class> trace enabled
=back
In case of issues with the colored output, setting the environment variable
In case of issues with the colored output, setting the environment variable
C<ANSI_COLORS_DISABLED> can be used to suppress it.
=cut

View File

@@ -94,7 +94,7 @@ sub best_status {
my $cur_status = '';
foreach my $status (reverse @{ $job->_statuslist }) {
next if $status->phase
next if $status->phase
and $status->phase !~ m/^(?:early|main|store|late)$/;
if ($status->level >= $cur_level) {
@@ -123,7 +123,7 @@ sub finalise_status {
my $max_level = Status->error()->level;
foreach my $status (reverse @{ $job->_statuslist }) {
next if $status->phase
next if $status->phase
and $status->phase !~ m/^(?:check|early|main|store|late)$/;
# done() from check phase should not be the action's done()

View File

@@ -89,7 +89,7 @@ sub fixup_device_auth {
push @new_stanzas, $stanza;
}
# legacy config
# legacy config
# note: read strings tried before write
# note: read-write is no longer used for read operations

View File

@@ -100,18 +100,18 @@ sub snmp_comm_reindex {
}
$prefix ||= 'vlan-';
if ($vlan =~ /^[0-9]+$/i && $vlan) {
if ($vlan =~ /^[0-9]+$/i && $vlan) {
debug sprintf '[%s] reindexing to "%s%s" (ver: %s, class: %s)',
$device->ip, $prefix, $vlan, $ver, $snmp->class;
$snmp->update(Context => ($prefix . $vlan));
} elsif ($vlan =~ /^[a-z0-9]+$/i && $vlan) {
} elsif ($vlan =~ /^[a-z0-9]+$/i && $vlan) {
debug sprintf '[%s] reindexing to "%s" (ver: %s, class: %s)',
$device->ip, $vlan, $ver, $snmp->class;
$snmp->update(Context => ($vlan));
} else {
} else {
debug sprintf '[%s] reindexing without context (ver: %s, class: %s)',
$device->ip, $ver, $snmp->class;
$snmp->update(Context => '');
$snmp->update(Context => '');
}
}
else {

View File

@@ -15,7 +15,7 @@
<th class="nd_center-cell">Delete</th>
</tr>
</thead>
</tbody>
<tbody>
[% SET count = 0 %]
[% FOREACH row IN results %]
[% SET count = count + 1 %]

View File

@@ -16,7 +16,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
<tr
[% ' class="nd_jobqueueitem success"' IF row.status == 'done' %]

View File

@@ -10,7 +10,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
<tr>
<td class="nd_center-cell"></td>
<td class="nd_center-cell"><input data-form="add" name="mac" type="text"></td>

View File

@@ -12,7 +12,7 @@
<th class="nd_center-cell">Time Elapsed</th>
</tr>
</thead>
</tbody>
<tbody>
[% WHILE (row = results.next) %]
<tr
[% IF NOT mac AND row.action == 'macsuck' %]

View File

@@ -7,7 +7,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
<tr>
<td class="nd_center-cell"><input data-form="add" name="dns" type="text"></td>
<td class="nd_center-cell"><input data-form="add" name="ip" type="text"></td>

View File

@@ -11,7 +11,7 @@
<th class="nd_center-cell">Time Elapsed</th>
</tr>
</thead>
</tbody>
<tbody>
[% WHILE (row = results.next) %]
<tr>
<td class="nd_center-cell">[% row.action.ucfirst | html_entity %]</td>

View File

@@ -12,7 +12,7 @@
<th class="nd_center-cell">Try Again</th>
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
<tr>
<td class="nd_center-cell">[% row.backend | html_entity %]</td>

View File

@@ -8,7 +8,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
<tr>
<td class="nd_center-cell">
<div class="input-append">

View File

@@ -7,7 +7,7 @@
<th nowrap>Last Discovery</th>
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
[% NEXT IF NOT row.remote_ip %]
<tr>

View File

@@ -13,7 +13,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
<tr>
<td class="nd_center-cell"><input data-form="add" name="fullname" type="text"></td>
<td class="nd_center-cell"><input data-form="add" name="username" type="text"></td>

View File

@@ -1,6 +1,6 @@
[% SET user_can_port_control = user_has_role('port_control') %]
<table class="table table-condensed table-striped">
</tbody>
<tbody>
<tr>
<td>System Name</td>
<td>[% d.name %]</td>

View File

@@ -6,7 +6,7 @@
[% END %]
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
<tr>
[% FOREACH col IN columns %]

View File

@@ -6,7 +6,7 @@
<th>Count</th>
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
<tr>
<td>

View File

@@ -10,7 +10,7 @@
<th class="nd_center-cell">Action</th>
</tr>
</thead>
</tbody>
<tbody>
<tr>
<td class="nd_center-cell">-</td>
<td class="nd_center-cell">[% session.logged_in_user | html_entity %]</td>

View File

@@ -8,7 +8,7 @@
<th class="nd_center-cell">Percent Utilization</th>
</tr>
</thead>
</tbody>
<tbody>
[% FOREACH row IN results %]
<tr>
<td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') %]?subnet=[% row.subnet | uri %]&daterange=[% params.daterange | uri %]&age_invert=[% params.age_invert | uri %]&limit=[% row.subnet_size | uri %]">

View File

@@ -12,7 +12,7 @@
[% END %]
</tr>
</thead>
</tbody>
<tbody>
[% WHILE (row = macs.next) %]
[% IF row.nbname %]
<tr>

View File

@@ -11,7 +11,7 @@
[% END %]
</tr>
</thead>
</tbody>
<tbody>
[% WHILE (row = ips.next) %]
<tr>
<td>