Skip to content

Commit

Permalink
Add work title to the title tag in the HTML of work analytics page
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang4952 committed May 9, 2017
1 parent 8bf5fdc commit 916ad9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/hyrax/stats/work.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% provide :page_title, construct_page_title("Work Analytics: #{@stats.model.title.first}") %>

<!-- Adapted from jquery-flot examples https://github.com/flot/flot/blob/master/examples/visitors/index.html -->
<%= javascript_tag do %>
var hyrax_item_stats = <%= @stats.to_flot.to_json.html_safe %>;
Expand Down

0 comments on commit 916ad9d

Please sign in to comment.