Skip to content
Snippets Groups Projects
Commit 427a9ede authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Handle template dep version

parent 2b1a23e2
No related branches found
No related tags found
1 merge request!7Implement 5.0 Templates
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<fieldset> <fieldset>
<legend style="font-size: 1.6em">Location, Date, and Time</legend> <legend style="font-size: 1.6em">Location, Date, and Time</legend>
<label for="location"><span class="required">*</span> Location</label> <label for="location"><span class="required">*</span> Location</label>
<select id="location" name="location" class="use-select2" style="width: 100%;"> <select id="location" name="location" class="use-select2 dcf-input-select" style="width: 100%;">
<% locations.each do |location| %> <% locations.each do |location| %>
<option <%= 'selected="selected"' if !event.location.nil? && event.location.id == location.id %> value="<%= location.id %>"><%= location.name %></option> <option <%= 'selected="selected"' if !event.location.nil? && event.location.id == location.id %> value="<%= location.id %>"><%= location.name %></option>
<% end %> <% end %>
......
<!DOCTYPE html> <!DOCTYPE html>
<% template_dep_version = '5.0.6' %>
<html class="no-js" lang="en"> <html class="no-js" lang="en">
<head> <head>
<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/head-1.html"))).result %> <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/head-1.html"))).result %>
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
<!-- TemplateBeginEditable name="doctitle" --> <!-- TemplateBeginEditable name="doctitle" -->
<title><%= @title %> | University of Nebraska&ndash;Lincoln</title> <title><%= @title %> | University of Nebraska&ndash;Lincoln</title>
<!-- TemplateEndEditable --> <!-- TemplateEndEditable -->
<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/head-2.html"))).result %> <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/head-2.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %>
<!-- TemplateBeginEditable name="head" --> <!-- TemplateBeginEditable name="head" -->
<!-- Place optional header elements here --> <!-- Place optional header elements here -->
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
...@@ -154,7 +155,7 @@ ...@@ -154,7 +155,7 @@
<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/footer-global-2.html"))).result %> <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/footer-global-2.html"))).result %>
</footer> </footer>
<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/noscript.html"))).result %> <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/noscript.html"))).result %>
<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/js-body.html"))).result %> <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/js-body.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %>
<!-- TemplateBeginEditable name="jsbody" --> <!-- TemplateBeginEditable name="jsbody" -->
<!-- put your custom javascript here --> <!-- put your custom javascript here -->
<script type="text/javascript">WDN.initializePlugin("notice");</script> <script type="text/javascript">WDN.initializePlugin("notice");</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment