campaign for outfit pages
This commit is contained in:
parent
eb2a42b1d1
commit
8f0f37b4c8
2 changed files with 2 additions and 1 deletions
|
@ -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 }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue