Removing short open tags and replacing with print statements.
This commit is contained in:
parent
9ea3a22864
commit
fa7ad2f45d
|
@ -1,6 +1,6 @@
|
|||
<div id="title">
|
||||
<h1 style="display: inline-block">Build #<?= $build->getId(); ?></h1>
|
||||
<h3 style="margin-left: 40px; display: inline-block">Branch: <?= $build->getBranch(); ?> - <?= $build->getCommitId() == 'Manual' ? 'Manual Build' : 'Commit: ' . $build->getCommitId(); ?></h3>
|
||||
<h1 style="display: inline-block">Build #<?php print $build->getId(); ?></h1>
|
||||
<h3 style="margin-left: 40px; display: inline-block">Branch: <?php print $build->getBranch(); ?> - <?php print $build->getCommitId() == 'Manual' ? 'Manual Build' : 'Commit: ' . $build->getCommitId(); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@ -8,12 +8,12 @@
|
|||
<div class="well" style="padding: 8px 0">
|
||||
<ul class="nav nav-list">
|
||||
<li><a href="/"><i class="icon-home"></i> Dashboard</a></li>
|
||||
<li><a href="/project/view/<?= $build->getProject()->getId(); ?>"><i class="icon-folder-open"></i> <?= $build->getProject()->getTitle(); ?></a></li>
|
||||
<li><a href="/project/view/<?php print $build->getProject()->getId(); ?>"><i class="icon-folder-open"></i> <?php print $build->getProject()->getTitle(); ?></a></li>
|
||||
<li class="divider"></li>
|
||||
<li class="nav-header">Options</li>
|
||||
<li><a href="/build/rebuild/<?= $build->getId(); ?>"><i class="icon-cog"></i> Rebuild</a></li>
|
||||
<li><a href="/build/rebuild/<?php print $build->getId(); ?>"><i class="icon-cog"></i> Rebuild</a></li>
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<li><a href="javascript:confirmDelete('/build/delete/<?= $build->getId(); ?>')"><i class="icon-trash"></i> Delete Build</a></li>
|
||||
<li><a href="javascript:confirmDelete('/build/delete/<?php print $build->getId(); ?>')"><i class="icon-trash"></i> Delete Build</a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -25,7 +25,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="plugins">
|
||||
<?= $plugins; ?>
|
||||
<?php print $plugins; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -68,13 +68,13 @@
|
|||
<script>
|
||||
setInterval(function()
|
||||
{
|
||||
$.getJSON('/build/data/<?= $build->getId(); ?>', updateBuildView);
|
||||
$.getJSON('/build/data/<?php print $build->getId(); ?>', updateBuildView);
|
||||
}, 10000);
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script>
|
||||
window.initial = <?= $data; ?>;
|
||||
window.initial = <?php print $data; ?>;
|
||||
|
||||
function updateBuildView(data)
|
||||
{
|
||||
|
|
|
@ -30,21 +30,21 @@ switch($build->getStatus())
|
|||
break;
|
||||
}
|
||||
?>
|
||||
<tr class="<?= $cls; ?>">
|
||||
<td><a href="/build/view/<?= $build->getId(); ?>">#<?= str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
|
||||
<td><a href="/project/view/<?= $build->getProjectId(); ?>"><?= $build->getProject()->getTitle(); ?></a></td>
|
||||
<td><a href="<?= $build->getCommitLink(); ?>"><?= $build->getCommitId(); ?></a></td>
|
||||
<td><a href="<?= $build->getBranchLink(); ?>"><?= $build->getBranch(); ?></a></td>
|
||||
<td><?= $status; ?></td>
|
||||
<tr class="<?php print $cls; ?>">
|
||||
<td><a href="/build/view/<?php print $build->getId(); ?>">#<?php print str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
|
||||
<td><a href="/project/view/<?php print $build->getProjectId(); ?>"><?php print $build->getProject()->getTitle(); ?></a></td>
|
||||
<td><a href="<?php print $build->getCommitLink(); ?>"><?php print $build->getCommitId(); ?></a></td>
|
||||
<td><a href="<?php print $build->getBranchLink(); ?>"><?php print $build->getBranch(); ?></a></td>
|
||||
<td><?php print $status; ?></td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="btn" href="/build/view/<?= $build->getId(); ?>">View</a>
|
||||
<a class="btn" href="/build/view/<?php print $build->getId(); ?>">View</a>
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="javascript:confirmDelete('/build/delete/<?= $build->getId(); ?>');">Delete Build</a></li>
|
||||
<li><a href="javascript:confirmDelete('/build/delete/<?php print $build->getId(); ?>');">Delete Build</a></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<li class="nav-header">Projects</li>
|
||||
|
||||
<?php foreach($projects as $project): ?>
|
||||
<li><a href="/project/view/<?= $project->getId(); ?>"><i class="icon-folder-open"></i> <?= $project->getTitle(); ?></a></li>
|
||||
<li><a href="/project/view/<?php print $project->getId(); ?>"><i class="icon-folder-open"></i> <?php print $project->getTitle(); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -29,7 +29,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-builds">
|
||||
<?= $builds; ?>
|
||||
<?php print $builds; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
</div>
|
||||
|
||||
<div id="content" class="container">
|
||||
<?= $content; ?>
|
||||
<?php print $content; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
@ -43,7 +42,7 @@
|
|||
<div class="container">
|
||||
<div class="row" style="margin-top: 10%; text-align: center">
|
||||
<div class="" id="login-box">
|
||||
<?= $form; ?>
|
||||
<?php print $form; ?>
|
||||
</div>
|
||||
|
||||
<a id="logo" href="http://www.block8.co.uk/"><img src="http://cms.block8.co.uk/assets/img/small-logo-trans-white.png"></a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div id="title">
|
||||
<h1>Project: <?= $project->getTitle(); ?></h1>
|
||||
<h1>Project: <?php print $project->getTitle(); ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@ -7,14 +7,14 @@
|
|||
<div class="well" style="padding: 8px 0">
|
||||
<ul class="nav nav-list">
|
||||
<li><a href="/"><i class="icon-home"></i> Dashboard</a></li>
|
||||
<li><a href="/project/view/<?= $project->getId(); ?>"><i class="icon-folder-open"></i> <?= $project->getTitle(); ?></a></li>
|
||||
<li><a href="/project/view/<?php print $project->getId(); ?>"><i class="icon-folder-open"></i> <?php print $project->getTitle(); ?></a></li>
|
||||
<li class="divider"></li>
|
||||
<li class="nav-header">Options</li>
|
||||
<li><a href="/project/build/<?= $project->getId(); ?>"><i class="icon-cog"></i> Build Now</a></li>
|
||||
<li><a href="/project/build/<?php print $project->getId(); ?>"><i class="icon-cog"></i> Build Now</a></li>
|
||||
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<li><a href="/project/edit/<?= $project->getId(); ?>"><i class="icon-edit"></i> Edit Project</a></li>
|
||||
<li><a href="javascript:confirmDelete('/project/delete/<?= $project->getId(); ?>')"><i class="icon-trash"></i> Delete Project</a></li>
|
||||
<li><a href="/project/edit/<?php print $project->getId(); ?>"><i class="icon-edit"></i> Edit Project</a></li>
|
||||
<li><a href="javascript:confirmDelete('/project/delete/<?php print $project->getId(); ?>')"><i class="icon-trash"></i> Delete Project</a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -51,7 +51,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-builds">
|
||||
<?= $builds; ?>
|
||||
<?php print $builds; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
<script>
|
||||
setInterval(function()
|
||||
{
|
||||
$('#latest-builds').load('/project/builds/<?= $project->getId(); ?>');
|
||||
$('#latest-builds').load('/project/builds/<?php print $project->getId(); ?>');
|
||||
}, 10000);
|
||||
</script>
|
||||
<?php endif; ?>
|
|
@ -1,5 +1,5 @@
|
|||
<div id="title">
|
||||
<h1><?= $type == 'add' ? 'Add Project' : 'Edit Project' ?></h1>
|
||||
<h1><?php print $type == 'add' ? 'Add Project' : 'Edit Project' ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@ -8,7 +8,7 @@
|
|||
<?php if(!is_null($key)): ?>
|
||||
<p>To make it easier to get started, we've generated a public / private key pair for you to use for this project. To use it, just add the following public key to the "deploy keys" section of your repository settings on Github / Bitbucket.</p>
|
||||
|
||||
<textarea style="width: 90%; height: 150px;"><?= $key ?></textarea>
|
||||
<textarea style="width: 90%; height: 150px;"><?php print $key ?></textarea>
|
||||
<?php elseif($type == 'add'): ?>
|
||||
<p>Fill in the form to the right to add your new project.</p>
|
||||
<?php else: ?>
|
||||
|
@ -17,7 +17,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="span8">
|
||||
<?= $form; ?>
|
||||
<?php print $form; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -40,19 +40,19 @@
|
|||
break;
|
||||
}
|
||||
?>
|
||||
<tr class="<?= $cls; ?>">
|
||||
<td><a href="/user/edit/<?= $user->getId(); ?>"><?= $user->getEmail(); ?></a></td>
|
||||
<td><?= $user->getName(); ?></td>
|
||||
<td><?= $status; ?></td>
|
||||
<tr class="<?php print $cls; ?>">
|
||||
<td><a href="/user/edit/<?php print $user->getId(); ?>"><?php print $user->getEmail(); ?></a></td>
|
||||
<td><?php print $user->getName(); ?></td>
|
||||
<td><?php print $status; ?></td>
|
||||
<td>
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<div class="btn-group">
|
||||
<a class="btn" href="/user/edit/<?= $user->getId(); ?>">Edit</a>
|
||||
<a class="btn" href="/user/edit/<?php print $user->getId(); ?>">Edit</a>
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="javascript:confirmDelete('/user/delete/<?= $user->getId(); ?>');">Delete User</a></li>
|
||||
<li><a href="javascript:confirmDelete('/user/delete/<?php print $user->getId(); ?>');">Delete User</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div id="title">
|
||||
<h1><?= $type == 'add' ? 'Add User' : 'Edit ' . $user->getName() ?></h1>
|
||||
<h1><?php print $type == 'add' ? 'Add User' : 'Edit ' . $user->getName() ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@ -13,6 +13,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="span8">
|
||||
<?= $form; ?>
|
||||
<?php print $form; ?>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue