]> git.openstreetmap.org Git - rails.git/commitdiff
Remove unused about page code
authorJohn Firebaugh <john.firebaugh@gmail.com>
Wed, 6 Nov 2013 19:15:08 +0000 (11:15 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Wed, 6 Nov 2013 19:15:08 +0000 (11:15 -0800)
app/assets/images/about/0.jpg [deleted file]
app/assets/images/about/1.jpg [deleted file]
app/assets/images/about/2.jpg [deleted file]
app/assets/images/about/3.jpg [deleted file]
app/assets/images/about/4.jpg [deleted file]
app/assets/images/about/5.jpg [deleted file]
app/assets/javascripts/about.js [deleted file]
app/views/site/about.html.erb
config/environments/production.rb

diff --git a/app/assets/images/about/0.jpg b/app/assets/images/about/0.jpg
deleted file mode 100644 (file)
index 3e7bcbb..0000000
Binary files a/app/assets/images/about/0.jpg and /dev/null differ
diff --git a/app/assets/images/about/1.jpg b/app/assets/images/about/1.jpg
deleted file mode 100644 (file)
index 6efa048..0000000
Binary files a/app/assets/images/about/1.jpg and /dev/null differ
diff --git a/app/assets/images/about/2.jpg b/app/assets/images/about/2.jpg
deleted file mode 100644 (file)
index 1fcb351..0000000
Binary files a/app/assets/images/about/2.jpg and /dev/null differ
diff --git a/app/assets/images/about/3.jpg b/app/assets/images/about/3.jpg
deleted file mode 100644 (file)
index 3cffd51..0000000
Binary files a/app/assets/images/about/3.jpg and /dev/null differ
diff --git a/app/assets/images/about/4.jpg b/app/assets/images/about/4.jpg
deleted file mode 100644 (file)
index 9e9b304..0000000
Binary files a/app/assets/images/about/4.jpg and /dev/null differ
diff --git a/app/assets/images/about/5.jpg b/app/assets/images/about/5.jpg
deleted file mode 100644 (file)
index 85c19bd..0000000
Binary files a/app/assets/images/about/5.jpg and /dev/null differ
diff --git a/app/assets/javascripts/about.js b/app/assets/javascripts/about.js
deleted file mode 100644 (file)
index 6747dce..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-(function () {
-  var num = Math.floor(Math.random() * 6);
-
-  // Background image
-  if (window.location.hash) {
-    var h = window.location.hash.match(/#(.*)/);
-    if (!isNaN(parseInt(h[1], 10))) num = h[1];
-  }
-
-  // $(document).ready(function () {
-  //   $('#content').attr('class', 'photo-' + num);
-  // });
-
-  $(document).on('click', '#next-photo', function () {
-    num = (num + 1) % 6;
-    $('#content').attr('class', 'photo-' + num);
-    window.location.hash = num;
-    return false;
-  });
-})();
index a142cc007786129f248f3d520d7783a1b0903eeb..3cc87605ef98ca1dd04bfd76e17698cbb09ecf05 100644 (file)
@@ -1,7 +1,3 @@
-<% content_for :head do %>
-  <%= javascript_include_tag "about" %>
-<% end %>
-
 <div class='attr'>
   <div class='byosm'>
     <%= t "about_page.copyright_html" %>
 <div class='attr'>
   <div class='byosm'>
     <%= t "about_page.copyright_html" %>
     <p><%= t "about_page.open_data_html", :copyright_path => copyright_path %></p>
   </div>
 </div>
     <p><%= t "about_page.open_data_html", :copyright_path => copyright_path %></p>
   </div>
 </div>
-
-<% 5.times do |i| %>
-  <div class='caption photo-<%= i %>'>
-    <%= t "about_page.photo_caption_#{i}_html" %>
-  </div>
-<% end %>
-
-<!-- <a class='next' id='next-photo' href='#'><%= t "about_page.next" %></a> -->
index 8a4fb763a86667cd60d876a2129165270413f200..3eb08ac6c6268fa6da8f7b1a20b225325f3d1880 100644 (file)
@@ -69,7 +69,7 @@ OpenStreetMap::Application.configure do
 
   # Precompile additional assets.
   # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
 
   # Precompile additional assets.
   # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
-  config.assets.precompile += %w( index.js browse.js welcome.js about.js )
+  config.assets.precompile += %w( index.js browse.js welcome.js )
   config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js )
   config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css )
   config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css )
   config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js )
   config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css )
   config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css )