diff --git a/app/views/canvas/full_zoom/_my_module.html.erb b/app/views/canvas/full_zoom/_my_module.html.erb index 11c46ec2c..25784a24b 100644 --- a/app/views/canvas/full_zoom/_my_module.html.erb +++ b/app/views/canvas/full_zoom/_my_module.html.erb @@ -32,10 +32,10 @@
- <%= link_to_if can_edit_module(my_module), t("experiments.canvas.full_zoom.due_date"), due_date_my_module_path(my_module, format: :json), remote: true, class: "due-date-link" %> + <%= link_to_if can_edit_module(my_module) && can_edit_modules(my_module.experiment), t("experiments.canvas.full_zoom.due_date"), due_date_my_module_path(my_module, format: :json), remote: true, class: "due-date-link" %>
- <% if can_edit_module(my_module) %> + <% if can_edit_module(my_module) && can_edit_modules(my_module.experiment) %> <%= link_to due_date_my_module_path(my_module, format: :json), remote: true, class: "due-date-link due-date-refresh" do %> <%= render partial: "my_modules/due_date_label.html.erb", locals: { my_module: my_module } %> <% end %> diff --git a/app/views/projects/experiment_archive/_experiment.html.erb b/app/views/projects/experiment_archive/_experiment.html.erb index f298be36b..32a3c8ed8 100644 --- a/app/views/projects/experiment_archive/_experiment.html.erb +++ b/app/views/projects/experiment_archive/_experiment.html.erb @@ -29,10 +29,39 @@
"> + <%=l experiment.archived_on, format: :full_date %>
+
+
+ <%=t "projects.experiment_archive.created_on" %> +
+
+ "> + + <%=l experiment.created_at, format: :full_date %> + +
+
+
+
+ <%=t "projects.experiment_archive.last_modified_on" %> +
+
+ "> + + <%=l experiment.updated_at, format: :full_date %> + +
+
+
+
+ <%= experiment.description %> + +
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index 483af6e14..f07e32fc1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -391,7 +391,11 @@ en: no_archived_experiments: "No archived experiments!" restore_option: "Restore" archived_on: "Archived on" + created_on: "Created on" + last_modified_on: "Last modified on" archived_on_title: "Experiment archived on %{date} at %{time}." + created_on_title: "Experiment created on %{date} at %{time}." + last_modified_on_title: "Experiment last modified on %{date} at %{time}." user_organizations: enums: