Skip to content

Commit

Permalink
Add a way to set build service branding to download section
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp committed Mar 25, 2022
1 parent f783ce7 commit dec5003
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/controllers/download_controller.rb
Expand Up @@ -4,7 +4,9 @@ class DownloadController < ObsController
before_action :set_colors, :hide_search_box

# display documentation
def doc; end
def doc
@build_service= true
end

def appliance
@project = params[:project]
Expand Down Expand Up @@ -136,11 +138,12 @@ def ymp_without_arch_and_version

def render_page(page_template)
@box_title = @page_title
@build_service= true
respond_to do |format|
format.html { render page_template, layout: 'download' }
format.html { render page_template, layout: 'application' }
format.iframe do
response.headers.except! 'X-Frame-Options'
render page_template, layout: 'iframe.html'
render page_template
end
# needed for rails < 3.0 to support JSONP
format.json { render_json @data.to_json }
Expand Down

0 comments on commit dec5003

Please sign in to comment.