'
+
layout 'mailer'
+
+ before_action :attach_logo
+
+ private
+
+ def attach_logo
+ attachments.inline['U-M_Logo.svg'] = File.read(Rails.root.join('app/assets/images/U-M_Logo.svg'))
+ end
end
diff --git a/app/views/containers/_container_detail.html.erb b/app/views/containers/_container_detail.html.erb
index 952d0387..5698d7c3 100644
--- a/app/views/containers/_container_detail.html.erb
+++ b/app/views/containers/_container_detail.html.erb
@@ -9,7 +9,7 @@
<%= link_to edit_container_path(@container),
class: "btn btn-sm btn-outline-primary me-2" do %>
- Edit
+ Edit Collection
<% end %>
<% end %>
diff --git a/app/views/containers/_contest_descriptions_table.html.erb b/app/views/containers/_contest_descriptions_table.html.erb
index 8e93b434..69cb9ca0 100644
--- a/app/views/containers/_contest_descriptions_table.html.erb
+++ b/app/views/containers/_contest_descriptions_table.html.erb
@@ -28,14 +28,14 @@
<%= boolean_to_yes_no(description.active) %> |
-
+
<% contest_description_action_links(container, description).each do |action, config| %>
<%= link_to config[:path],
class: 'd-block',
data: config[:data]&.merge('bs-toggle': 'tooltip'),
title: config[:title],
aria: { label: config[:title] } do %>
-
+
<%= config[:title] %>
<% end %>
<% end %>
diff --git a/app/views/containers/show.html.erb b/app/views/containers/show.html.erb
index 49c06f62..fc499a13 100644
--- a/app/views/containers/show.html.erb
+++ b/app/views/containers/show.html.erb
@@ -25,7 +25,7 @@
<%= render partial: "containers/assignments_table", locals: { container: @container, assignments: @assignments } %>
<% end %>
- Add New Permission
+Add New Permission
<%= turbo_frame_tag "new_assignment" do %>
<%= render partial: 'containers/assignment_form', locals: { container: @container, assignment: @assignment } %>
<% end %>
diff --git a/app/views/contest_instances/_judging_results.html.erb b/app/views/contest_instances/_judging_results.html.erb
index 28331c5d..61d17f0e 100644
--- a/app/views/contest_instances/_judging_results.html.erb
+++ b/app/views/contest_instances/_judging_results.html.erb
@@ -15,9 +15,9 @@
@contest_instance,
round_id: round.id
),
- class: "btn btn-sm btn-info me-3",
+ class: "btn btn-sm btn-outline-primary me-3",
disabled: !round.complete? do %>
-
+
Email round <%= round.round_number %> results
<% end %>
@@ -28,7 +28,7 @@
data-bs-placement="top"
title="Number of times emails have been sent for this round">
- Emails sent: <%= round.emails_sent_count %> time<%= 's' if round.emails_sent_count > 1 %>
+ Emails sent: <%= pluralize(round.emails_sent_count, 'time') %>
<% end %>
diff --git a/app/views/contest_instances/index.html.erb b/app/views/contest_instances/index.html.erb
index 7cf60b20..274efe7b 100644
--- a/app/views/contest_instances/index.html.erb
+++ b/app/views/contest_instances/index.html.erb
@@ -27,8 +27,9 @@
<%= @contest_description.notes %>
- <%= link_to "Edit", edit_container_contest_description_path(@container, @contest_description), class: "btn btn-sm btn-primary" %>
- <%= link_to "Archive", container_contest_description_path(@container, @contest_description), data: { controller: 'confirm', confirm_message_value: 'Are you sure you want to archive this?' } %>
+ <%= link_to edit_container_contest_description_path(@container, @contest_description), class: "btn btn-sm btn-outline-primary me-2" do %>
+ Edit Contest
+ <% end %>
<%= "#{pluralize(@contest_instances.count, "instance")} of this contest" %>
@@ -110,13 +111,13 @@
| <%= contest_instance.require_campus_employment_info %> |
<%= contest_instance.require_finaid_info %> |
-
+
<%= link_to container_contest_description_contest_instance_path(@container, @contest_description, contest_instance),
class: 'd-block',
data: { 'bs-toggle': 'tooltip' },
title: 'View instance',
aria: { label: 'View instance' } do %>
-
+
View instance
<% end %>
<%= link_to edit_container_contest_description_contest_instance_path(@container, @contest_description, contest_instance),
@@ -124,7 +125,7 @@
data: { 'bs-toggle': 'tooltip' },
title: 'Edit instance',
aria: { label: 'Edit instance' } do %>
-
+
Edit instance
<% end %>
diff --git a/app/views/contest_instances/show.html.erb b/app/views/contest_instances/show.html.erb
index 8c9b7879..de8302ea 100644
--- a/app/views/contest_instances/show.html.erb
+++ b/app/views/contest_instances/show.html.erb
@@ -21,7 +21,7 @@
<%= link_to edit_container_contest_description_contest_instance_path(@container, @contest_description, @contest_instance),
class: "btn btn-sm btn-outline-primary me-2" do %>
- Edit
+ Edit Instance
<% end %>
<% end %>
diff --git a/app/views/judging_rounds/edit.html.erb b/app/views/judging_rounds/edit.html.erb
index 55c602d0..89ba2331 100644
--- a/app/views/judging_rounds/edit.html.erb
+++ b/app/views/judging_rounds/edit.html.erb
@@ -70,6 +70,13 @@
Comment Requirements
+
+
+ <% if (content = render_editable_content('judging_rounds', 'comment_interface_behavior')) %>
+ <%= content %>
+ <% end %>
+
+
diff --git a/app/views/judging_rounds/new.html.erb b/app/views/judging_rounds/new.html.erb
index 94ec7136..3aa32f13 100644
--- a/app/views/judging_rounds/new.html.erb
+++ b/app/views/judging_rounds/new.html.erb
@@ -52,6 +52,13 @@
Comment Requirements
+
+
+ <% if (content = render_editable_content('judging_rounds', 'comment_interface_behavior')) %>
+ <%= content %>
+ <% end %>
+
+
|