diff --git a/views/fixed.erb b/views/fixed.erb index 53fe5c5e115436ee9961be931a6c5029010ca3b7..247e3a6b3e0bf35141598951b768a1d1445ee6ca 100644 --- a/views/fixed.erb +++ b/views/fixed.erb @@ -1,169 +1,183 @@ -<% template_dep_version = '5.1.0' %> +<% template_dep_version = '5.2.0' %> - - <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/head-1.html"))).result %> - - - <%= @title %> | University of Nebraska–Lincoln - - <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/head-2-local.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> - - + $Id$ + --> + + <%= @title %> | University of Nebraska–Lincoln + + <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.2/includes/global/head-2-local.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> + <% if defined?(kiosk_mode) && kiosk_mode == 'true' %> <% end %> - - + + - - - - -<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/skip-nav.html"))).result %> - - -
- <% unless defined?(kiosk_mode) && kiosk_mode == 'true' %> - -
-
-
- -
-
- +
+ +
+
- - - -
- -
-
- - - <% end %> -
- -
- <% if defined?(kiosk_mode) && kiosk_mode == 'true' %> -
- <% else %> -
- <% end %> - - <% unless session["notice"].nil? %> - <% notices = session.delete("notice") %> - <% notices.each do |notice| %> - <% notice_class = '' %> - <% case notice[:type] - when 'success', :success - notice_class = 'affirm' - when 'failure', :failure - notice_class = 'negate' - when 'alert', 'danger', 'error', :error, :alert, :danger - notice_class = 'alert' %> +
+ <% end %> +
+ +
+ <% if defined?(kiosk_mode) && kiosk_mode == 'true' %> +
+ <% else %> +
<% end %> -
- -
-

<%= notice[:header] %>

-
- <%= notice[:message] %> + + <% unless session["notice"].nil? %> + <% notices = session.delete("notice") %> + <% notices.each do |notice| %> + <% notice_class = '' %> + <% case notice[:type] + when 'success', :success + notice_class = 'affirm' + when 'failure', :failure + notice_class = 'negate' + when 'alert', 'danger', 'error', :error, :alert, :danger + notice_class = 'alert' %> + <% end %> +
+ +
+

<%= notice[:header] %>

+
+ <%= notice[:message] %> +
+
-
+ <% end %> + <% else %> + <% session.delete(:notice) %> + <% end %> + <%= yield %>
- <% end %> - <% else %> - <% session.delete(:notice) %> - <% end %> - <%= yield %> -
-
+
+ +
+
+ <% unless defined?(kiosk_mode) && kiosk_mode == 'true' %> + + <% end %> + <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.2/includes/global/noscript.html"))).result %> + <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.2/includes/global/js-body-local.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> + + + + <%= @inline_body_script_content %> - - -<% unless defined?(kiosk_mode) && kiosk_mode == 'true' %> - -<% end %> -<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/noscript.html"))).result %> -<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/js-body-local.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> - - - -<%= @inline_body_script_content %> - - +