app/controllers/caboose/fonts_controller.rb in caboose-cms-0.7.85 vs app/controllers/caboose/fonts_controller.rb in caboose-cms-0.8.1

- old
+ new

@@ -1,10 +1,10 @@ module Caboose class FontsController < ApplicationController layout 'caboose/admin' - # GET /admin/fonts + # @route GET /admin/fonts def admin_index @hf = Font.where(:site_id => @site.id, :name => "heading-font").last if !@hf then @hf = Font.create(:site_id => @site.id, :name => "heading-font", :family => "Open Sans", :variant => "600", :url => "http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSi3USBnSvpkopQaUR-2r7iU.ttf") end @bf = Font.where(:site_id => @site.id, :name => "body-font").last if !@bf then @bf = Font.create(:site_id => @site.id, :name => "body-font", :family => "Open Sans", :variant => "regular", :url => "http://fonts.gstatic.com/s/opensans/v13/IgZJs4-7SA1XX_edsoXWog.ttf") end @@ -16,10 +16,10 @@ if !@bfbi then @bfbi = Font.create(:site_id => @site.id, :name => "body-font-bold-italic", :family => "Open Sans", :variant => "600italic", :url => "http://fonts.gstatic.com/s/opensans/v13/PRmiXeptR36kaC0GEAetxpZ7xm-Bj30Bj2KNdXDzSZg.ttf") end @btn = Font.where(:site_id => @site.id, :name => "button-font").last if !@btn then @btn = Font.create(:site_id => @site.id, :name => "button-font", :family => "Open Sans", :variant => "regular", :url => "http://fonts.gstatic.com/s/opensans/v13/IgZJs4-7SA1XX_edsoXWog.ttf") end end - # PUT /admin/fonts + # @route PUT /admin/fonts def admin_update resp = StdClass.new family = params[:family] name = params[:name] url = params[:url] \ No newline at end of file