campaign for outfit pages

This commit is contained in:
Emi Matchu 2014-09-11 20:10:48 -05:00
parent eb2a42b1d1
commit 8f0f37b4c8
2 changed files with 2 additions and 1 deletions

View file

@ -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 }

View file

@ -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)