From 2ed3a87bc64dd66372bae75b71c6397c7ebbe188 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 1 Feb 2018 20:28:45 -0300 Subject: [PATCH] Added project scenarios identifiers to bottom of identifiers panel of project designs info modal --- app/templates/project/show/-dunlop-project-info.emblem | 8 ++++++++ tests/dummy/app/i18n/translations/attributes.coffee | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/templates/project/show/-dunlop-project-info.emblem b/app/templates/project/show/-dunlop-project-info.emblem index f238993..1379091 100644 --- a/app/templates/project/show/-dunlop-project-info.emblem +++ b/app/templates/project/show/-dunlop-project-info.emblem @@ -36,5 +36,13 @@ if (eq tab 'identifiers') td if workflow_action_definition.completes_group i.checkmark.box.icon + + if model.project_scenarios.length + .ui.horizontal.divider= t 'models.plural.project_scenario' + table.ui.compact.definition.table + each model.sorted_project_scenarios as |project_scenario| + tr + td= project_scenario.name + td= project_scenario.identifier .modal-actions.sticky button.ui.basic.button.modal-rollback{action 'close'}= t 'general.close' diff --git a/tests/dummy/app/i18n/translations/attributes.coffee b/tests/dummy/app/i18n/translations/attributes.coffee index 01f7eed..ccc3ff7 100644 --- a/tests/dummy/app/i18n/translations/attributes.coffee +++ b/tests/dummy/app/i18n/translations/attributes.coffee @@ -36,7 +36,7 @@ translations = attributes: state: 'State' project_instance_action: state: 'State' - target_date: 'Action Date' + target_date: 'Action target date' value: 'Value' notes: 'Info' completed_at: 'Completed'