diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index 7744791d..357b6eca 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -83,6 +83,7 @@ class OutfitsController < ApplicationController def show @outfit = Outfit.find(params[:id]) + @campaign = Campaign.current rescue nil respond_to do |format| format.html { render } format.json { render :json => @outfit } diff --git a/app/views/outfits/show.html.haml b/app/views/outfits/show.html.haml index 333cab8f..71166ecd 100644 --- a/app/views/outfits/show.html.haml +++ b/app/views/outfits/show.html.haml @@ -1,5 +1,5 @@ - title(@outfit.name || t('.default_outfit_name')) -- content_for :before_title, campaign_progress +- content_for :before_title, campaign_progress(@campaign) - open_graph :type => 'openneo-impress:outfit', :title => yield(:title), :url => outfit_url(@outfit)