~emersion/drmdb

8ef2bc653a89772eb2814c2c2bf5a1131785530c — Simon Ser 2 years ago 6e1f842
Add .editorconfig
2 files changed, 37 insertions(+), 26 deletions(-)

A .editorconfig
M public/properties.html
A .editorconfig => .editorconfig +11 -0
@@ 0,0 1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 4

[*.{html,css}]
indent_style = space
indent_size = 2

M public/properties.html => public/properties.html +26 -26
@@ 5,32 5,32 @@
<p><a href="/">Back to index</a></p>

<table>
	<thead>
		<tr>
			<th>Property</th>
			<th>Type</th>
			<th>Object type</th>
			{{range .Drivers}}
			<th>{{.}}</th>
			{{end}}
		</tr>
	</thead>
	<tbody>
		{{range $name, $prop := .Properties}}
		<tr>
			<td>{{$name}}</td>
			<td>{{$prop.Type}}</td>
			<td>{{$prop.ObjectType}}</td>
			{{range $.Drivers}}
			{{if index $prop.Drivers .}}
			<td class="status-supported">✓</td>
			{{else}}
			<td class="status-unsupported">✗</td>
			{{end}}
			{{end}}
		</tr>
		{{end}}
	</tbody>
    <thead>
        <tr>
            <th>Property</th>
            <th>Type</th>
            <th>Object type</th>
            {{range .Drivers}}
            <th>{{.}}</th>
            {{end}}
        </tr>
    </thead>
    <tbody>
        {{range $name, $prop := .Properties}}
        <tr>
            <td>{{$name}}</td>
            <td>{{$prop.Type}}</td>
            <td>{{$prop.ObjectType}}</td>
            {{range $.Drivers}}
            {{if index $prop.Drivers .}}
            <td class="status-supported">✓</td>
            {{else}}
            <td class="status-unsupported">✗</td>
            {{end}}
            {{end}}
        </tr>
        {{end}}
    </tbody>
</table>

{{template "foot"}}