add settings version to version column in snapshots log
This commit is contained in:
parent
7c6290bd89
commit
a2626a0b58
|
@ -84,6 +84,14 @@ class SnapshotsLog(Thing):
|
|||
except AttributeError:
|
||||
return ''
|
||||
|
||||
def get_version(self):
|
||||
if not self.snapshot:
|
||||
return self.version
|
||||
settings_version = self.snapshot.settings_version or ''
|
||||
settings_version = "".join([x[0] for x in settings_version.split(' ') if x])
|
||||
|
||||
return "{} ({})".format(self.version, settings_version)
|
||||
|
||||
|
||||
class PlaceholdersLog(Thing):
|
||||
"""A Placeholder log."""
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{{ snap.version }}
|
||||
{{ snap.get_version() }}
|
||||
</td>
|
||||
<td>
|
||||
{% if snap.get_device() %}
|
||||
|
|
Reference in a new issue