[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"> <div class="panel-body">
{{#logs}} {{#logs}}
<h3>{{file_name}}</h3> <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}} {{/logs}}
</div> </div>
</div> </div>

View file

@ -10,8 +10,9 @@
<div class="container"> <div class="container">
{{#logs}} {{#logs}}
<h2>{{filename}}</h2> <h2>{{filename}}</h2>
<pre class="service-log"> <pre id="log" class="service-log">
{{filecontent}} {{filecontent}}
</pre> </pre>
<button data-paste-content="#log"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
{{/logs}} {{/logs}}
</div> </div>

View file

@ -14,11 +14,12 @@
<h2 class="panel-title"><span class="fa-fw fa-stethoscope"></span> {{t 'diagnosis'}}</h2> <h2 class="panel-title"><span class="fa-fw fa-stethoscope"></span> {{t 'diagnosis'}}</h2>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<pre>{{ diagnosis }}</pre> <pre id="diagnosis">{{ diagnosis }}</pre>
{{#if private}} {{#if private}}
<a class="btn btn-primary" href="#/tools/diagnosis">{{t 'diagnosis_hide_private'}}</a> <a class="btn btn-primary" href="#/tools/diagnosis">{{t 'diagnosis_hide_private'}}</a>
{{else}} {{else}}
<a class="btn btn-primary" href="#/tools/diagnosis/private">{{t 'diagnosis_view_private'}}</a> <a class="btn btn-primary" href="#/tools/diagnosis/private">{{t 'diagnosis_view_private'}}</a>
{{/if}} {{/if}}
<button data-paste-content="#diagnosis"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
</div> </div>
</div> </div>

View file

@ -7,11 +7,12 @@
<div class="separator"></div> <div class="separator"></div>
{{#if logs}} {{#if logs}}
<pre class="upgrade-log log"> <pre id="upgrade-log" class="upgrade-log log">
{{#logs}} {{#logs}}
{{.}} {{.}}
{{/logs}} {{/logs}}
</pre> </pre>
<button data-paste-content="#upgrade-log"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
{{else}} {{else}}
{{t 'no_log'}} {{t 'no_log'}}
{{/if}} {{/if}}