Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #813 from ualbertalib/separate_manifests_for_js_gr…
Browse files Browse the repository at this point in the history
…oups

Fix missing JS on homepage for Repository stats
  • Loading branch information
pbinkley committed Oct 23, 2015
2 parents 97ad387 + 41a8093 commit 5d97221
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//= require jquery.canvasjs.min
//= require twitterFetcher_min
//
// note that we should refactor the following to not be included on every page on the site
//= require custom
//= require hydranorth_fileupload
//= require hydranorth_update_collections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ function initialize_chart(stats) {
);

chart.render();
}
}
14 changes: 7 additions & 7 deletions app/views/layouts/homepage.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="<%= t("sufia.document_language") %>" prefix="og:http://ogp.me/ns#">
<% content_for :head do %>
<%= javascript_include_tag 'homepage' %>
<%= javascript_include_tag 'modules/homepage' %>
<% end %>
<%= render 'shared/head' %>


<body class="home">

<div class="dn-wrap hidden-xs">
<div class="triangle"></div>
<div class="dn"><a href="#profiles"><span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></a></div>
Expand Down Expand Up @@ -45,7 +45,7 @@
<div class="col-xs-12 visible-xs mobile-search">
<%= render partial: "/front_search_form"%>
</div>

</div>

<div class="tan visible-xs pane">
Expand All @@ -69,7 +69,7 @@
<div class="col-sm-5 white second-row">

<div class="chart"><h3>ERA currently has <strong><span id="chart-item-count">36,675</span></strong> items</h3>

<div id="chartContainer">

</div>
Expand All @@ -81,10 +81,10 @@
</div>
<div class="col-sm-4 dark-tan second-row">
<div id="tweets">

</div>
</div>

</div>
</div>
<div class="container-fluid info-pane pane">
Expand All @@ -94,7 +94,7 @@
<p>ERA (Education and Research Archive) is the name for University of Alberta's Digital Asset Management strategy, being developed and supported by the <a href="https://www.library.ualberta.ca">University of Alberta Libraries</a>. For more on the technology behind ERA see <a href="/about">Technology and Partnerships</a>.</p>

<p>ERA's open access content includes the intellectual output of the University and promotes global opportunities for research discovery as well as for archival preservation. ERA also provides an easy and convenient solution for faculty who must deposit their research in an open access repository to meet funding agency requirements.</p>

</div>
<%= render partial: "/footer" %>
<%= render 'shared/ajax_modal' %>
Expand Down
1 change: 1 addition & 0 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w(modules/*.js)

0 comments on commit 5d97221

Please sign in to comment.