X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5380c722ce344d712cab307d41e0f7a654a4070c..df591042778408d03d410d5c22a669d85652d1ea:/apps/workbench/app/views/layouts/body.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb index 67e50bd306..f4be7cad63 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 %> - - <% if current_user and !current_user.prefs[:getting_started_shown] %> <%# requires JS support below %> -
- <% end %> + <%= render partial: 'browser_unsupported' %><%# requires JS support below %> + <%= render partial: 'getting_started/getting_started_popup' %>
<%= yield %> @@ -213,10 +244,16 @@
-
-<% if current_user and !current_user.prefs[:getting_started_shown] %> +<% if Rails.configuration.enable_getting_started_popup 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 %>