mirror of
https://github.com/dobin/avred
synced 2026-06-08 13:54:13 +00:00
ui: make numbers nicer
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<td>{{outcome.fileInfo.name}}</td>
|
||||
</tr><tr>
|
||||
<td>Size: </td>
|
||||
<td>{{outcome.fileInfo.size}} bytes</td>
|
||||
<td>{{outcome.fileInfo.size|prettynumber}} bytes</td>
|
||||
</tr><tr>
|
||||
<td>Type: </td>
|
||||
<td>{{outcome.fileInfo.ident}}</td>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link " id="match-tab-{{match.idx}}" data-bs-toggle="tab" data-bs-target="#match-{{match.idx}}"
|
||||
type="button" role="tab" aria-controls="match-tab-{{match.idx}}" aria-selected="true">
|
||||
{{match.idx}}: {{match.fileOffset}}
|
||||
{{match.idx}}: {{match.fileOffset|prettynumber}}
|
||||
</button>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{outcome.fileInfo.size}}</td>
|
||||
<td>{{outcome.fileInfo.size|prettynumber}}</td>
|
||||
<td style="white-space:nowrap;">{{outcome.fileInfo.ident}}</td>
|
||||
<td>{{outcome.matches|length}}</td>
|
||||
|
||||
|
||||
+5
-1
@@ -272,4 +272,8 @@ def hex_filter(s):
|
||||
|
||||
@views.app_template_filter('mydate')
|
||||
def date_filter(s):
|
||||
return s.strftime('%Y-%m-%d %H:%M:%S')
|
||||
return s.strftime('%Y-%m-%d %H:%M:%S')
|
||||
|
||||
@views.app_template_filter('prettynumber')
|
||||
def date_filter(s):
|
||||
return f"{s:,}"
|
||||
|
||||
Reference in New Issue
Block a user