rosa-build/app/controllers/pages_controller.rb

28 lines
725 B
Ruby

# -*- encoding : utf-8 -*-
class PagesController < ApplicationController
# before_filter :authenticate_user!, :except => [:show, :main, :forbidden]
# load_and_authorize_resource
def root
render 'pages/tour/abf-tour-project-description-1', :layout => 'tour'
end
def tour_inside
@entries = case params[:id]
when 'projects'
%w(repo builds monitoring)
when 'sources'
%w(source history annotation edit)
when 'builds'
%w(control git tracker)
end
render "pages/tour/tour-inside", :layout => 'tour'
end
def forbidden
end
def tos
end
end