简体   繁体   English

从wrapbootstrap实现引导主题

[英]Implementing bootstrap theme from wrapbootstrap

I've downloaded a theme through wrapbootstrap but cannot figure out how to implement it. 我已经通过wrapbootstrap下载了一个主题,但无法弄清楚如何实现它。 I assumed it was going to be just copying over the CSS and JS files but there seems to be much more to it. 我以为它只是复制CSS和JS文件,但似乎还有更多。

The theme I have downloaded is https://wrapbootstrap.com/theme/awesome-admin-WB0663265 我下载的主题是https://wrapbootstrap.com/theme/awesome-admin-WB0663265

I have temporarily uploaded it onto Github here github.com/raycchan/temp (i'll remove this ASAP once I resolve it) 我已将其临时上传到Github上 github.com/raycchan/temp (一旦解决,我将尽快删除它)

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: 这里有示例模板,这些模板具有生成的.html文件和.html.erb文件,一旦将erb文件插入我的rails应用程序,它就会抛出类似以下的错误:

But it doesn't recognize these: 但是它不认识这些:

<%= 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 谢谢

It is really interesting to give a Rails soul to the nice template . 让Rails灵魂加入漂亮的模板真的很有趣。 A few simple steps: 一些简单的步骤:

  • copy .css to app/assets/stylesheets and .js to app/assets/javasripts 将.css复制到app/assets/stylesheets ,将.js复制到app/assets/javasripts
  • include the new files in the manifest files application.css and application.js 将新文件包括在清单文件application.cssapplication.js
  • for font-awesome use this description 对于超赞的字体,使用此描述

Then share the result with us . 然后与我们分享结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM