Skip to content

Commit

Permalink
Indent config/resource w/ 4 spaces
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 30, 2015
1 parent 4e36e2e commit 340e846
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions application/views/scripts/config/resource.phtml
@@ -1,67 +1,67 @@
<div class="controls">
<?= $tabs ?>
<?= $tabs ?>
</div>
<div class="content" data-base-target="_next">
<a href="<?= $this->href('config/createresource') ?>">
<?= $this->icon('plus') ?> <?= $this->translate('Create A New Resource') ?>
</a>
<table class="action-table listing-table">
<thead>
<th><?= $this->translate('Resource') ?></th>
<th style="width: 5em"><?= $this->translate('Remove') ?></th>
</thead>
<tbody>
<?php foreach ($this->resources as $name => $value): ?>
<tr>
<td>
<?php
switch ($value->type) {
case 'db':
$icon = 'database';
break;
case 'ldap':
$icon = 'sitemap';
break;
case 'livestatus':
$icon = 'flash';
break;
case 'ssh':
$icon = 'user';
break;
case 'file':
case 'ini':
$icon = 'doc-text';
break;
default:
$icon = 'edit';
break;
}
?>
<?= $this->qlink(
$name,
'config/editresource',
array('resource' => $name),
array(
'icon' => $icon,
'title' => sprintf($this->translate('Edit resource %s'), $name)
)
) ?>
</td>
<td>
<center>
<?= $this->qlink(
'',
'config/removeresource',
array('resource' => $name),
array(
'icon' => 'trash',
'title' => sprintf($this->translate('Remove resource %s'), $name)
)
) ?>
</center>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<a href="<?= $this->href('config/createresource') ?>">
<?= $this->icon('plus') ?> <?= $this->translate('Create A New Resource') ?>
</a>
<table class="action-table listing-table">
<thead>
<th><?= $this->translate('Resource') ?></th>
<th style="width: 5em"><?= $this->translate('Remove') ?></th>
</thead>
<tbody>
<?php foreach ($this->resources as $name => $value): ?>
<tr>
<td>
<?php
switch ($value->type) {
case 'db':
$icon = 'database';
break;
case 'ldap':
$icon = 'sitemap';
break;
case 'livestatus':
$icon = 'flash';
break;
case 'ssh':
$icon = 'user';
break;
case 'file':
case 'ini':
$icon = 'doc-text';
break;
default:
$icon = 'edit';
break;
}
?>
<?= $this->qlink(
$name,
'config/editresource',
array('resource' => $name),
array(
'icon' => $icon,
'title' => sprintf($this->translate('Edit resource %s'), $name)
)
) ?>
</td>
<td>
<center>
<?= $this->qlink(
'',
'config/removeresource',
array('resource' => $name),
array(
'icon' => 'trash',
'title' => sprintf($this->translate('Remove resource %s'), $name)
)
) ?>
</center>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>

0 comments on commit 340e846

Please sign in to comment.