📄 themes_controller.rb
字号:
class Admin::ThemesController < Admin::BaseController def index @themes = Theme.find_all @themes.each do |theme| theme.description_html = TextFilter.filter_text(this_blog, theme.description, nil, [:markdown,:smartypants]) end @active = this_blog.current_theme end def preview send_file "#{Theme.themes_root}/#{params[:theme]}/preview.png", :type => 'image/png', :disposition => 'inline', :stream => false end def switchto this_blog.theme = params[:theme] this_blog.save redirect_to :action => 'index' endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -