X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e1c423603291bf014edb6d68bd4f2247c77283a3..2e03d03bc55b5a612c2bf04d878a72f2ee420d99:/apps/workbench/app/views/layouts/body.html.erb diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb index 4875690ea5..ed19d51d25 100644 --- a/apps/workbench/app/views/layouts/body.html.erb +++ b/apps/workbench/app/views/layouts/body.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
<% if current_user.andand.is_active %> - + <% end %> <% end %> <%= render partial: 'browser_unsupported' %><%# requires JS support below %> + <%= render partial: 'getting_started/getting_started_popup' %>
<%= yield %> @@ -203,3 +257,17 @@
+ +<% if Rails.configuration.Workbench.EnableGettingStartedPopup and current_user and !current_user.prefs[:getting_started_shown] and + !request.url.include?("/profile") and + !request.url.include?("/user_agreements") and + !request.url.include?("/inactive")%> + + <% + prefs = current_user.prefs + prefs[:getting_started_shown] = Time.now + current_user.update_attributes prefs: prefs.to_json + %> +<% end %>