Update configfiles templates
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
@@ -10,27 +10,22 @@ $header
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<table class="full" id="howto">
|
<div class="info">
|
||||||
<tr>
|
<p>{$lng['admin']['configfiles']['legend']}</p><br />
|
||||||
<th>{$lng['admin']['configfiles']['legend']}</th>
|
<p>
|
||||||
<th class="right">[close]</th>
|
{$lng['admin']['configfiles']['commands']}<br />
|
||||||
</tr>
|
<pre class="shell">
|
||||||
<tr>
|
|
||||||
<th>{$lng['admin']['configfiles']['commands']}</th>
|
|
||||||
<td><pre class="shell">
|
|
||||||
chmod u+x example-script.sh
|
chmod u+x example-script.sh
|
||||||
./example-script.sh</pre></td>
|
./example-script.sh</pre>
|
||||||
</tr>
|
</p><br />
|
||||||
<tr>
|
<p>
|
||||||
<th>{$lng['admin']['configfiles']['files']}</th>
|
{$lng['admin']['configfiles']['files']}<br />
|
||||||
<td>
|
|
||||||
<pre class="filecontent">Lorem ipsum dolor sit amet,
|
<pre class="filecontent">Lorem ipsum dolor sit amet,
|
||||||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
|
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
|
||||||
ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
||||||
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</pre>
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</pre>
|
||||||
</td>
|
</p>
|
||||||
</tr>
|
</div>
|
||||||
</table>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<div>
|
<div class="pushbot">
|
||||||
<pre class="shell">{$commands}</pre>
|
<pre class="shell">{$commands}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<div>
|
<div class="pushbot">
|
||||||
|
<fieldset class="file">
|
||||||
|
<legend>{$realname}</legend>
|
||||||
<pre class="shell">$EDITOR {$realname}</pre>
|
<pre class="shell">$EDITOR {$realname}</pre>
|
||||||
<pre class="filecontent">{$file_content}</pre>
|
<pre class="filecontent">{$file_content}</pre>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
31
templates/Sparkle/assets/css/main.css
vendored
31
templates/Sparkle/assets/css/main.css
vendored
@@ -1454,13 +1454,36 @@ table thead th.tablesorter-headerDesc {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pushbot {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #d1d5d8;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.shell {
|
.shell {
|
||||||
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
|
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
border: 1px solid #000;
|
border: 1px solid #d1d5d8;
|
||||||
-moz-border-radius: 2px;
|
border-radius: 3px;
|
||||||
-webkit-border-radius: 2px;
|
padding: 10px;
|
||||||
border-radius: 2px;
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset.file {
|
||||||
|
border:1px solid #d1d5d8;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filecontent {
|
||||||
|
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
|
||||||
|
border: 1px solid #d1d5d8;
|
||||||
|
border-radius: 3px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
14
templates/Sparkle/assets/js/main.js
vendored
14
templates/Sparkle/assets/js/main.js
vendored
@@ -62,6 +62,20 @@ $(document).ready(function() {
|
|||||||
disabled: $(this).is(":checked")
|
disabled: $(this).is(":checked")
|
||||||
}).focus();
|
}).focus();
|
||||||
});
|
});
|
||||||
|
// Enable autoselect in configfules
|
||||||
|
$(".shell, .filecontent").click(function() {
|
||||||
|
if (window.getSelection) {
|
||||||
|
selection = window.getSelection();
|
||||||
|
range = document.createRange();
|
||||||
|
range.selectNodeContents(this);
|
||||||
|
selection.removeAllRanges();
|
||||||
|
selection.addRange(range);
|
||||||
|
} else if (document.body.createTextRange) {
|
||||||
|
range = document.body.createTextRange();
|
||||||
|
range.moveToElementText(this);
|
||||||
|
range.select();
|
||||||
|
}
|
||||||
|
});
|
||||||
// Height of divs fix
|
// Height of divs fix
|
||||||
var snheight = $('#sidenavigation').height();
|
var snheight = $('#sidenavigation').height();
|
||||||
var mainheight = $('#maincontent').height();
|
var mainheight = $('#maincontent').height();
|
||||||
|
|||||||
Reference in New Issue
Block a user