mirror of
https://github.com/friendica/friendica
synced 2025-03-04 12:28:25 +00:00
Refactor view.tpl for admin/logs: Use class variable for log rows to eliminate whitespace from indentation in tr class attribute"
This commit is contained in:
parent
ee25c69cd7
commit
f3a160598f
1 changed files with 11 additions and 11 deletions
|
@ -70,17 +70,17 @@
|
|||
aria-label="{{$l10n.View_details}}" aria-haspopup="true" aria-expanded="false"
|
||||
data-data="{{$row->data}}" data-source="{{$row->source}}">
|
||||
<td>{{$row->date}}</td>
|
||||
<td class="
|
||||
{{if $row->level == "EMERGENCY"}}bg-danger
|
||||
{{elseif $row->level == "ALERT"}}bg-danger
|
||||
{{elseif $row->level == "CRITICAL"}}bg-danger
|
||||
{{elseif $row->level == "ERROR"}}bg-danger
|
||||
{{elseif $row->level == "WARNING"}}bg-warning
|
||||
{{elseif $row->level == "NOTICE"}}bg-info
|
||||
{{elseif $row->level == "INFO"}}bg-info
|
||||
{{else}}text-muted
|
||||
{{/if}}
|
||||
">{{$row->level}}</td>
|
||||
{{assign var="class" value="bg-info"}}
|
||||
{{if $row->level == "EMERGENCY" || $row->level == "ALERT" || $row->level == "CRITICAL" || $row->level == "ERROR"}}
|
||||
{{assign var="class" value="bg-danger"}}
|
||||
{{elseif $row->level == "WARNING"}}
|
||||
{{assign var="class" value="bg-warning"}}
|
||||
{{elseif $row->level == "NOTICE" || $row->level == "INFO"}}
|
||||
{{assign var="class" value="bg-info"}}
|
||||
{{else}}
|
||||
{{ assign var="class" value="text-muted"}}
|
||||
{{/if}}
|
||||
<td class="{{$class}}">{{$row->level}}</td>
|
||||
<td>{{$row->context}}</td>
|
||||
<td class="log-message">{{$row->message}}</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue