Skip to content

Commit

Permalink
fix j2 float bug
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed May 24, 2018
1 parent 9294eb4 commit ac6611e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/base/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h4 class="text-center">{{ type|capitalize }}s</h4>
<div class="form-group">
<select id="{{ type }}-properties" class="form-control">
{% for property in type_properties %}
{% if property == 'type' %}
{% if property == default_properties[property] %}
<option selected="selected">Type</option>
{% else %}
<option>{{ names[property] }}</option>
Expand Down
6 changes: 1 addition & 5 deletions source/objects/templates/object_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ <h4 class="modal-title" id="title"></h4>
{% for node in nodes %}
<tr id="node-{{ node.name }}">
{% for field in node_fields %}
{% if field in ("longitude", "latitude") %}
<td>{{ node[field]|round(2) }}</td>
{% else %}
<td>{{ node[field] }}</td>
{% endif %}
<td>{{ node[field] }}</td>
{% endfor %}
<td>
<button type="button" class="btn btn-info btn-xs" onclick="showObjectModal('node', '{{ node['name'] }}')">Edit</button>
Expand Down

0 comments on commit ac6611e

Please sign in to comment.