Skip to content

Commit

Permalink
Fix caching/open graph for Article/Event show screens
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbibat committed Dec 15, 2013
1 parent 2763074 commit 93d5194
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/views/articles/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<% cache [@article, "header"] do %>
<% title @article.title %>
<% description generate_description(@article.summary) %>
<% set_meta_tags :open_graph => {
Expand All @@ -8,7 +7,6 @@
:url => article_url(@article),
:image => thumbnail_url(@article)
} %>
<% end %>

<div class="row-fluid article">
<% cache [@article, "top"] do %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/events/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<% title @event.name %>
<% cache [@event, "header"] do %>
<% description generate_description(@event.summary) %>
<% set_meta_tags :open_graph => {
:title => "#{@event.name} | #{ENV['title']}",
Expand All @@ -8,7 +7,6 @@
:url => event_url(@event),
:image => thumbnail_url(@event)
} %>
<% end %>

<div class="row-fluid event">
<div class="span12">
Expand Down

0 comments on commit 93d5194

Please sign in to comment.