Fix broken shell and cmd
parent
cff8e4445e
commit
99aae0dd77
6
index.js
6
index.js
|
@ -34,19 +34,19 @@ app.engine("handlebars", hbs({
|
|||
layoutsDir: path.join(__dirname, "views", "layouts"),
|
||||
defaultLayout: "main",
|
||||
helpers: {
|
||||
either: (a, b, options) => {
|
||||
either: function(a, b, options) {
|
||||
if (a || b) {
|
||||
return options.fn(this);
|
||||
}
|
||||
},
|
||||
filesize: filesize,
|
||||
octicon: (i, options) => {
|
||||
octicon: function(i, options) {
|
||||
if (!octicons[i]) {
|
||||
return new handlebars.SafeString(octicons.question.toSVG());
|
||||
}
|
||||
return new handlebars.SafeString(octicons[i].toSVG());
|
||||
},
|
||||
eachpath: (path, options) => {
|
||||
eachpath: function (path, options) {
|
||||
if (typeof path != "string") {
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<form action="@cmd" method="post">
|
||||
<div id="cmd" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-sm">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-light">
|
||||
<h5 class="modal-title">Run command</h5>
|
||||
|
|
Loading…
Reference in New Issue