Skip to content

Commit

Permalink
Merge pull request #5320 from dodona-edu/enhance/demo-mode
Browse files Browse the repository at this point in the history
Don't show zeus messages on submissions when in demo mode
  • Loading branch information
jorg-vr authored Jan 29, 2024
2 parents 1d73031 + d129a6b commit 1375001
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/models/submissions.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -540,3 +540,9 @@ iframe.file {
margin-top: -12px;
margin-bottom: -12px;
}

.demo-mode {
.message-zeus {
display: none;
}
}
2 changes: 1 addition & 1 deletion app/views/layouts/_main_container.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="main-container" class="<%= content_for?(:container_class) ? yield(:container_class) : "container" %> main">
<div id="main-container" class="<%= content_for?(:container_class) ? yield(:container_class) : "container" %> main <%= "demo-mode" if Current.demo_mode %>">
<div class="page-messages hidden-print" data-nosnippet>
<% flash.each do |key, value| %>
<% type = flash_to_bootstrap(key) %>
Expand Down

0 comments on commit 1375001

Please sign in to comment.