</textarea> <p class="help-block" style="clear: both;">Optional notes and comments you wish to attach to the recipe. <a href="http://daringfireball.net/projects/markdown/">Markdown</a> is supported.</p> </div> </div> <div class="control-group"> <label class="control-label" for="recipe-editor">Recipe</label> <div class="controls"> <textarea id="recipe-editor" name="content"><?php echo $recipe->content; ?> </textarea> <p class="help-block" style="clear: both;"></p> </div> </div> <div class="control-group"> <div class="controls"> <a class="btn btn-primary" id="edit-recipe-submit" onclick="validate_edit_recipe();"><i class="icon-ok-sign icon-white"></i> Update Recipe</a> <a class="btn" href="<?php echo Links::render("view-recipe", array($recipe->id)); ?> ">Cancel</a> </div> </div> </fieldset> </form> </div> </div> </div> <?php Footer::render(array("chosen", "codemirror", "autosize", "edit-recipe"));
?> </option> <?php } ?> </select> <p class="help-block">The recipe to execute.</p> </div> </div> <div class="control-group"> <label class="control-label" for="execute-notes">Notes</label> <div class="controls"> <textarea id="execute-notes" name="notes"></textarea> <p class="help-block" style="clear: both;">Optional notes and comments you wish to attach to this execution. <a href="http://daringfireball.net/projects/markdown/">Markdown</a> is supported.</p> </div> </div> <div class="control-group"> <div class="controls"> <a class="btn btn-primary" onclick="validate_execute();" id="execute-btn"><i class="icon-ok-sign icon-white"></i> Execute</a> </div> </div> </form> </div> </div> </div> <div class="row" id="execute-results-container"></div> <?php Footer::render(array("chosen", "codemirror", "highlight", "autosize", "execute"));
?> </a> </li> </ul> </div> </div> </div> <div id="contents-loading" class="progress progress-striped active"> <div class="bar" style="width: 100%;"></div> </div> <div id="execution-history-contents" style="display: none;"> <div style="float: right; position: relative; top: 0px; right: 0px;"> <a href="<?php echo Links::render("download-execution-history", array($execution_history['_id']->__toString())); ?> " class="btn btn-medium"><i class="icon-download-alt"></i> Download JSON</a> <a href="<?php echo Links::render("view-execution-history-raw", array($execution_history['_id']->__toString())); ?> " class="btn btn-medium"><i class="icon-align-left"></i> Raw</a> </div> <pre class="prettyprint linenums"><?php echo htmlentities(@json_encode($execution_history, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); ?> </pre> </div> </div> </div> </div> <?php Footer::render(array("code-pretty", "zclip", "view-execution-history"));
</div> <div class="span3"> <div class="well"> <h1 style="margin-bottom: 10px;"><a href="<?php echo Links::render("recipes"); ?> ">Recipes</a></h1> <p>Recipes are containers of commands that are fully versioned. Recipes can be written in pure shell, bash, perl, python, or node.js.</p> <p><a class="btn btn-primary btn-large" href="<?php echo Links::render("recipes"); ?> ">Recipes »</a></p> </div> </div> <div class="span3"> <div class="well"> <h1 style="margin-bottom: 10px;"><a href="<?php echo Links::render("files"); ?> ">Files</a></h1> <p>Files is a centralized place to store text or binary files and then SCP transfer them to groups of servers via recipes.</p> <p><a class="btn btn-primary btn-large" href="<?php echo Links::render("files"); ?> ">Files »</a></p> </div> </div> </div> <?php Footer::render(array("index"));
if (!empty($server->tags)) { ?> <div class="tags"> <?php foreach (explode(",", $server->tags) as $tag) { echo '<span class="label">' . $tag . '</span> '; } ?> </div> <?php } ?> <a class="ssh-status btn btn-mini disabled"></a> <div class="container-server-add-ssh-key-instructions"> <a class="btn btn-danger btn-mini btn-server-add-ssh-key-instructions" style="float: right;">Add Public SSH Key</a> </div> </div> <?php } ?> </div> <?php } ?> </div> </div> <?php Footer::render(array("chosen", "code-pretty", "tagsinput", "bootbox", "servers"));
<div class="well"> <div class="input-prepend" style="float: right"> <span class="add-on"> <i class="icon-search"></i> </span><input id="filter-files" type="text" class="span3 tip" rel="tooltip" data-placement="top" data-original-title="By id, name or type." maxlength="100" placeholder="Filter Files…" value="" disabled /> </div> <div class="clear"></div> </div> </div> </div> <div class="row"> <div class="span12"> <div class="well"> <div id="files-did-you-know" class="alert alert-info fade in" style="display: none;"> <a class="close" data-dismiss="alert">×</a> <h4>Did you know?</h4> You may upload either <i><strong>text</strong></i> or <i><strong>binary</strong></i> files. Store <strong>configuration</strong> files here. </div> <div id="progress-container"> <div class="progress progress-striped active"> <div class="bar" style="width: 100%;"></div> </div> </div> <div id="table-container" style="display: none;"></div> </div> </div> </div> <?php Footer::render(array("filedrop", "bootbox", "files"));
<div class="btn-group" id="timezone-daylight-savings"> <?php if (isset($settings->data->timezone_daylight_savings) && $settings->data->timezone_daylight_savings === "true") { echo '<a class="btn btn-primary" data-value="true">Yes</a> <a class="btn" data-value="false">No</a>'; } else { echo '<a class="btn" data-value="true">Yes</a> <a class="btn btn-primary" data-value="false">No</a>'; } ?> </div> <p class="help-block">Add one hour to the timezone offset in observance of daylight savings.</p> </div> </div> <div class="control-group"> <div class="controls"> <a class="btn btn-primary" onclick="validate_edit_settings();"><i class="icon-ok-sign icon-white"></i> Save Settings</a> </div> </div> </fieldset> </form> <div class="aes-key"> <i class="icon-lock"></i> Settings are stored <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" target="_blank">AES</a> encrypted. </div> <div class="clear"></div> </div> </div> </div> <?php Footer::render(array("chosen", "code-pretty", "settings"));
echo ucfirst($recipe->interpreter); ?> </td> <td><span class="badge badge-info"><?php echo $recipe->number_of_versions; ?> </span></td> <td><?php echo $recipe->added; ?> </td> <td><?php echo $recipe->modified; ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> </div> </div> </div> <?php Footer::render(array("bootbox", "recipes"));
?> ><?php echo substr($recipe_version->version, 0, 10); if ($recipe_version->id === $head->recipe_version) { ?> (HEAD)<?php } ?> </option> <?php } ?> </select> </li> </ul> </div> </div> </div> <pre class="prettyprint <?php echo $code_pretty_lang; ?> linenums"><?php echo $recipe->content; ?> </pre> </div> </div> </div> <?php Footer::render(array("chosen", "code-pretty", "bootbox", "view-recipe"));
</a> <?php } ?> <a><?php echo strtoupper($group->name); ?> </a> </h3> </div> </div> <?php if ($count % 3 === 2 || $count === count($groups) - 1) { ?> </div> <?php } ?> <?php $count++; ?> <?php } ?> </div> </div> </div> <?php Footer::render(array("bootbox", "groups")); ?>
<?php //This is the 404 controller include './views/header.php'; include './views/footer.php'; include './views/404.php'; $header = new Header(); $footer = new Footer(); $view = new Unknown_View(); $header->render(); $view->render(); $footer->render();
<p><a class="btn btn-primary btn-large" href="/servers">Servers »</a></p> </div> <div class="span4 well" style="width: 330px"> <h1 style="margin-bottom: 10px;"><a href="/recipes">Recipes</a></h1> <p>Recipes are containers of commands that are fully versioned. Recipes can be written in pure <i><strong>shell</strong></i>, <i><strong>bash</strong></i>, <i><strong>perl</strong></i>, <i><strong>python</strong></i>, or <i><strong>node.js</strong></i>.</p> <p><a class="btn btn-primary btn-large" href="/recipes">Recipes »</a></p> </div> <div class="span4 well" style="width: 330px"> <h1 style="margin-bottom: 10px;"><a href="/groups">Groups</a></h1> <p>Groups are a way to organize servers into collections. You may choose to create groups based on server role or location.</p> <p><a class="btn btn-primary btn-large" href="/groups">Groups »</a></p> </div> </div> <div class="row"> <div class="span12 well" style="width: 1105px; padding-left: 45px;"> <h1 style="margin-bottom: 10px;">Contacts</h1> <div style="float: left;"> <p><a href="http://commando.io">http://commando.io</a></p> <p><a href="mailto:commando@nodesocket.com">commando@nodesocket.com</a></p> <p style="margin-bottom: 6px;"><a href="https://github.com/nodesocket/commando">https://github.com/nodesocket/commando</a></p> </div> <div style="float: right;"> <p><a href="https://twitter.com/commando_io" class="twitter-follow-button" data-show-count="true" data-size="large">Follow @commando_io</a></p> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> </div> </div> <?php Footer::render();
Servers<?php } ?> "><span class="icon-search"></span> <?php echo count($history['servers']); ?> </a></td> <td><?php echo $history['recipe']['name']; ?> </td> <td><?php echo ucfirst($history['recipe']['interpreter']); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> </div> </div> </div> <?php Footer::render(array("execution-history"));
" class="btn btn-medium"><i class="icon-download-alt"></i> Download</a> <a href="<?php echo Links::render("view-file-raw", array($file['_id']->__toString())); ?> " class="btn btn-medium"><i class="icon-align-left"></i> Raw</a> </div> <pre class="prettyprint linenums"><?php echo htmlentities($file['data']); ?> </pre> </div> <?php } else { ?> <div class="alert alert-grey binary-file"> <div style="float: right; position: relative; top: -11px; right: -11px;"> <a href="<?php echo Links::render("download-file", array($file['_id']->__toString())); ?> " class="btn btn-medium"><i class="icon-download-alt"></i> Download</a> </div> <h3 style="margin-left: 112px; color: #cacaca;">Binary file.</h3> </div> <?php } ?> </div> </div> </div> <?php Footer::render(array("code-pretty", "codemirror", "autosize", "zclip", "bootbox", "view-file"));