从 wrapbootstrap 实现引导主题 [英] Implementing bootstrap theme from wrapbootstrap

查看:61
本文介绍了从 wrapbootstrap 实现引导主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过 wrapbootstrap 下载了一个主题,但不知道如何实现它.我以为它只是复制 CSS 和 JS 文件,但似乎还有更多内容.

I've downloaded a theme through wrapbootstrap but cannot figure out how to implement it. I assumed it was going to be just copying over the CSS and JS files but there seems to be much more to it.

我下载的主题是https://wrapbootstrap.com/theme/awesome-admin-WB0663265

我暂时把它上传到 Github 这里github.com/raycchan/temp(我解决后会尽快删除)

I have temporarily uploaded it onto Github here github.com/raycchan/temp (i'll remove this ASAP once I resolve it)

这里有一些示例模板,其中包含生成的 .html 文件和 .html.erb 文件,一旦我将 erb 文件插入到 Rails 应用程序中,它就会抛出如下错误:

There are example templates here that have the generated .html file as well as the .html.erb files, and once I plug the erb files into my rails app it throws out errors like the ones below:

但它不能识别这些:

<%= data.page.title || "Bootstrap Admin" %>         # data undefined
<%=partial 'dashboard-navigation'%>                 # partial undefined

有人能一步一步指导我如何实现这个引导程序主题吗?谢谢

Could someone instruct me step by step how to implement this bootstrap theme? Thank you

推荐答案

为漂亮的模板赋予 Rails 灵魂真的很有趣.几个简单的步骤:

It is really interesting to give a Rails soul to the nice template . A few simple steps:

  • 将 .css 复制到 app/assets/stylesheets 并将 .js 复制到 app/assets/javasripts
  • 在清单文件 application.cssapplication.js
  • 中包含新文件
  • 对于字体真棒使用此说明
  • copy .css to app/assets/stylesheets and .js to app/assets/javasripts
  • include the new files in the manifest files application.css and application.js
  • for font-awesome use this description

然后与我们分享结果.

这篇关于从 wrapbootstrap 实现引导主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆