[enh] Use paste button on every log section.

This commit is contained in:
opi 2016-05-06 19:16:58 +02:00
parent 34d775be73
commit aecd90cf6d
4 changed files with 8 additions and 4 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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}}