mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Use paste button on every log section.
This commit is contained in:
parent
34d775be73
commit
aecd90cf6d
4 changed files with 8 additions and 4 deletions
|
@ -22,7 +22,8 @@
|
|||
<div class="panel-body">
|
||||
{{#logs}}
|
||||
<h3>{{file_name}}</h3>
|
||||
<pre class="service-log">{{file_content}}</pre>
|
||||
<pre id="service-log-{{ @index }}" class="service-log">{{file_content}}</pre>
|
||||
<button data-paste-content="#service-log-{{ @index }}"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
|
||||
{{/logs}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
<div class="container">
|
||||
{{#logs}}
|
||||
<h2>{{filename}}</h2>
|
||||
<pre class="service-log">
|
||||
<pre id="log" class="service-log">
|
||||
{{filecontent}}
|
||||
</pre>
|
||||
<button data-paste-content="#log"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
|
||||
{{/logs}}
|
||||
</div>
|
||||
|
|
|
@ -14,11 +14,12 @@
|
|||
<h2 class="panel-title"><span class="fa-fw fa-stethoscope"></span> {{t 'diagnosis'}}</h2>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<pre>{{ diagnosis }}</pre>
|
||||
<pre id="diagnosis">{{ diagnosis }}</pre>
|
||||
{{#if private}}
|
||||
<a class="btn btn-primary" href="#/tools/diagnosis">{{t 'diagnosis_hide_private'}}</a>
|
||||
{{else}}
|
||||
<a class="btn btn-primary" href="#/tools/diagnosis/private">{{t 'diagnosis_view_private'}}</a>
|
||||
{{/if}}
|
||||
<button data-paste-content="#diagnosis"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
<div class="separator"></div>
|
||||
|
||||
{{#if logs}}
|
||||
<pre class="upgrade-log log">
|
||||
<pre id="upgrade-log" class="upgrade-log log">
|
||||
{{#logs}}
|
||||
{{.}}
|
||||
{{/logs}}
|
||||
</pre>
|
||||
<button data-paste-content="#upgrade-log"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
|
||||
{{else}}
|
||||
{{t 'no_log'}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue