diff --git a/templates/Sparkle/admin/configfiles/configfiles.tpl b/templates/Sparkle/admin/configfiles/configfiles.tpl index 9d8cb0d2..01002cda 100644 --- a/templates/Sparkle/admin/configfiles/configfiles.tpl +++ b/templates/Sparkle/admin/configfiles/configfiles.tpl @@ -10,27 +10,22 @@ $header
- - - - - - - - - - - - - -
{$lng['admin']['configfiles']['legend']}[close]
{$lng['admin']['configfiles']['commands']}
+			
+

{$lng['admin']['configfiles']['legend']}


+

+ {$lng['admin']['configfiles']['commands']}
+

 chmod u+x example-script.sh
-./example-script.sh
{$lng['admin']['configfiles']['files']} -
Lorem ipsum dolor sit amet,
+./example-script.sh
+


+

+ {$lng['admin']['configfiles']['files']}
+

Lorem ipsum dolor sit amet,
 consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
 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.
-
+

+
diff --git a/templates/Sparkle/admin/configfiles/configfiles_commands.tpl b/templates/Sparkle/admin/configfiles/configfiles_commands.tpl index 20063a07..4c097388 100644 --- a/templates/Sparkle/admin/configfiles/configfiles_commands.tpl +++ b/templates/Sparkle/admin/configfiles/configfiles_commands.tpl @@ -1,3 +1,3 @@ -
+
{$commands}
diff --git a/templates/Sparkle/admin/configfiles/configfiles_file.tpl b/templates/Sparkle/admin/configfiles/configfiles_file.tpl index cdea0337..1e73c4c3 100644 --- a/templates/Sparkle/admin/configfiles/configfiles_file.tpl +++ b/templates/Sparkle/admin/configfiles/configfiles_file.tpl @@ -1,4 +1,7 @@ -
+
+
+ {$realname}
$EDITOR {$realname}
{$file_content}
+
diff --git a/templates/Sparkle/assets/css/main.css b/templates/Sparkle/assets/css/main.css index 0f23a1a8..869adc8f 100644 --- a/templates/Sparkle/assets/css/main.css +++ b/templates/Sparkle/assets/css/main.css @@ -1454,13 +1454,36 @@ table thead th.tablesorter-headerDesc { white-space: nowrap; } +.pushbot { + margin-bottom: 20px; +} + +.info { + border-radius: 3px; + border: 1px solid #d1d5d8; + padding: 10px; + margin-bottom: 20px; +} + .shell { font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace; color: #bbb; background-color: #333; - border: 1px solid #000; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; + border: 1px solid #d1d5d8; + border-radius: 3px; + padding: 10px; + 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; } diff --git a/templates/Sparkle/assets/js/main.js b/templates/Sparkle/assets/js/main.js index 4579c2be..050bf34f 100644 --- a/templates/Sparkle/assets/js/main.js +++ b/templates/Sparkle/assets/js/main.js @@ -62,6 +62,20 @@ $(document).ready(function() { disabled: $(this).is(":checked") }).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 var snheight = $('#sidenavigation').height(); var mainheight = $('#maincontent').height();