Allow selection of process output and commands.

pull/3/head
Dave Page 2016-11-18 12:05:19 +00:00
parent 687f1f640f
commit 29743ad3c4
4 changed files with 9 additions and 5 deletions

View File

@ -43,6 +43,10 @@
.pg-bg-process-logs {
width: 100%;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.pg-bg-etime {

View File

@ -151,7 +151,7 @@ class BackupMessage(IProcessDesc):
res += html.safe_str(
_("Running command:")
)
res += '</b><br><i>'
res += '</b><br><span class="pg-bg-cmd enable-selection">'
res += html.safe_str(cmd)
replace_next = False
@ -177,7 +177,7 @@ class BackupMessage(IProcessDesc):
if arg == '--file':
replace_next = True
res += cmdArg(arg)
res += '</i></div>'
res += '</span></div>'
return res

View File

@ -103,7 +103,7 @@ class Message(IProcessDesc):
res += html.safe_str(
_("Running command:")
)
res += '</b><br><span class="pg-bg-cmd">'
res += '</b><br><span class="pg-bg-cmd enable-selection">'
res += html.safe_str(cmd)
replace_next = False

View File

@ -93,7 +93,7 @@ class RestoreMessage(IProcessDesc):
res += html.safe_str(
_("Running command:")
)
res += '</b><br><i>'
res += '</b><br><span class="pg-bg-cmd enable-selection">'
res += html.safe_str(cmd)
def cmdArg(x):
@ -119,7 +119,7 @@ class RestoreMessage(IProcessDesc):
if no_args > 1:
res += ' "' + html.safe_str(arg) + '"'
res += '</i></div>'
res += '</span></div>'
return res