<div class="panel-body"> <form method="post" data-loading> <div class="form-group"> <button type="submit" name="find" value="true" class="btn btn-default form-control"> <?php echo __('Find changes in %s folder', $config['remote_path']); ?> </button> </div> <?php if (isset($processor['rsync-upload'])) { ?> <?php echo shellResponse($processor['rsync-upload']); ?> <?php } ?> <?php if (input('find') === 'true') { ?> <?php if (empty($files)) { ?> <div class="alert alert-success"><?php
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Last commit'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($commit); ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Project status'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($status); ?> </div> </div>
?> </li> <li><strong><?php echo __('Port'); ?> :</strong> <?php echo $config['port']; ?> </li> <li><strong><?php echo __('Timeout'); ?> :</strong> <?php echo $config['timeout']; ?> </li> <li><strong><?php echo __('Remote Path'); ?> :</strong> <?php echo $config['remote_path']; ?> </li> </ul> <?php echo isset($processor['ftp-test']) ? shellResponse($processor['ftp-test']) : ''; ?> </div> </div> </form>
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Log for last %s commits', $last); ?> </h3> </div> <div class="panel-body"> <form class="form-group"> <input type="number" name="last" value="<?php echo $last; ?> " placeholder="<?php echo __('Get log for last N commits'); ?> " class="form-control" /> </form> <?php echo shellResponse($log); ?> </div> </div>
</li> <li><strong><?php echo __('User'); ?> :</strong> <?php echo $config['user']; ?> </li> <li><strong><?php echo __('Port'); ?> :</strong> <?php echo $config['port']; ?> </li> <li><strong><?php echo __('Remote Path'); ?> :</strong> <?php echo $config['remote_path']; ?> </li> </ul> <?php echo isset($processor['rsync-test']) ? shellResponse($processor['rsync-test']) : ''; ?> </div> </div> </form>
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Log for last %s commits', $last); ?> </h3> </div> <div class="panel-body"> <form class="form-group"> <input type="number" name="last" value="<?php echo $last; ?> " placeholder="<?php echo __('Get log for last N commits'); ?> " class="form-control" /> </form> <?php echo shellResponse($log, false); ?> </div> </div>
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Base Path'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($path); ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Who I am'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($whoami); ?> </div> </div>
?> <option value="<?php echo $line['name']; ?> " <?php echo $line['current'] ? 'selected' : ''; ?> ><?php echo $line['name']; ?> </option> <?php } ?> </select> <span class="input-group-btn"> <button type="submit" name="processor" value="git-branch" class="btn btn-warning"> <?php echo __('Git BRANCH'); ?> </button> </span> </div> <?php echo isset($processor['git-branch']) ? shellResponse($processor['git-branch']) : ''; ?> </div> </div> </form>
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Last commit'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($commit, false); ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Project status'); ?> </h3> </div> <div class="panel-body"> <?php echo shellResponse($status, false); ?> </div> </div>