Gem 'bootstrap_helper'把 home 改为中文

stephen · September 23, 2012 · Last by huacnlee replied at September 23, 2012 · 2186 hits

@huacnlee 在 Helper 里重载

module BootstrapHelper
    module Breadcrumb
        module InstanceMethods
            protected
            def set_breadcrumbs
                @breadcrumbs = ["<a href='/'><i class = 'icon-home'></i>这里改成中文的你想要的</a>".html_safe]
            end
        end
    end
end

虽然好似没太大作用,不过这样能体验统一吧! 谢谢台湾的朋友

额,我不是台湾的。。。

@xdite 提交一个 Pull request 呗

You need to Sign in before reply, if you don't have an account, please Sign up first.