summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/forms/action_forms.py1
-rw-r--r--ogcp/views.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 7fbaa79..69149da 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -234,6 +234,7 @@ class ImageDetailsForm(FlaskForm):
modified = StringField(label=_l('Last update'))
permissions = StringField(label=_l('Permissions'))
software_id = StringField(label=_l('Software id'))
+ checksum = StringField(label=_l('Checksum'))
class ServerForm(FlaskForm):
name = StringField(label=_l('Name'),
diff --git a/ogcp/views.py b/ogcp/views.py
index 8ece7db..f22bb62 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -3400,6 +3400,12 @@ def action_image_info():
form.software_id.data = image['software_id']
form.description.data = image['description']
+ checksum = image.get('checksum', _('Unknown'))
+ if not checksum:
+ checksum = _('Unknown')
+
+ form.checksum.data = checksum
+
try:
responses = get_images_grouped_by_repos()
except ServerError: