mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Use more explicit variable name for services_log. (Handlebars could not use 'log' as variable name.)
This commit is contained in:
parent
5b9df09541
commit
bd2dd6a6a0
2 changed files with 3 additions and 3 deletions
|
@ -543,7 +543,7 @@ app = Sammy('#main', function (sam) {
|
|||
c.api('/service/log', function(data) { // ?
|
||||
data2 = { 'logs': [], 'name': c.params['service'] }
|
||||
$.each(data, function(k, v) {
|
||||
data2.logs.push({name: k, log: v.join('\n')});
|
||||
data2.logs.push({filename: k, filecontent: v.join('\n')});
|
||||
});
|
||||
|
||||
store.clear('slide');
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
<div class="container">
|
||||
{{#logs}}
|
||||
<h2>{{name}}</h2>
|
||||
<h2>{{filename}}</h2>
|
||||
<pre class="service-log">
|
||||
{{log}}
|
||||
{{filecontent}}
|
||||
</pre>
|
||||
{{/logs}}
|
||||
</div>
|
Loading…
Add table
Reference in a new issue