以 Rails Engine 形式打包,可直接挂载到 Rails 项目中使用
bsat — Rails 后台模板
作者 metaminded
BSAT 是一个以 Rails Engine 形式打包的后台模板,基于 Bootstrap 3 的 SASS 版本,提供布局、导航、侧边栏与页面操作等 Rails 辅助方法。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
样式基于 Bootstrap 3 的 SASS 版本,支持通过变量覆盖进行定制
提供 bsat、bsat_brand、bsat_navbar、bsat_page_title、bsat_page_actions、bsat_sidebar_nav 等 Rails helper
侧边栏在小屏幕上自动折叠,页面操作按钮在较小设备上变为下拉菜单
提供 bsat_nested_form_fields 辅助方法,用于嵌套表单字段的样式处理
采用 MIT 许可证
模板详细介绍
BSAT 是一个以 Rails Engine 形式打包的后台管理模板,样式基于 Bootstrap 3 的 SASS 版本。它通过定义一组 content_for 变量,把内容渲染进 BSAT 模板,并提供 Rails 辅助方法(helper)来生成品牌区、导航栏、页面标题、页面操作、侧边栏导航以及嵌套表单字段等界面元素。项目说明中提到,默认只给出基础 UI 骨架,具体内容需要使用者自行填充;需要额外样式时可直接使用 Bootstrap 3。
依赖方面,README 列出 rails ~> 4.0、sass-rails ~> 4.0、bootstrap-sass ~> 3.1、coffee-rails ~> 4.0、compass-rails ~> 1.1、jquery-rails ~> 3.1、font-awesome-rails ~> 4.0 和 slim ~> 2.0,并说明项目主要面向内部使用,减少依赖并非首要目标。安装时需在 Gemfile 中以 GitHub 源引入(README 注明当时尚无正式发布版本),随后执行 bundle install;在 Sass 中通过 @import "bsat" 引入样式,在 JavaScript manifest 中通过 //= require bsat 加载脚本,且需要先手动引入 bootstrap(JS 还需先引入 jquery)。
使用方式上,在应用布局文件中调用 = bsat(yield) 渲染 BSAT 布局,再通过 bsat_brand、bsat_navbar、bsat_page_title、bsat_page_actions、bsat_sidebar_nav、bsat_nested_form_fields 等 helper 填充各区域内容。README 建议在布局中定义侧边栏导航,并利用 Rails 嵌套布局模拟导航层级。仓库最近更新时间为 2015 年,许可证为 MIT。
适合你的项目吗?
适用场景
- 为 Rails 项目搭建统一风格的后台管理界面
- 在已有 Rails 应用中引入基于 Bootstrap 3 的布局与导航组件
- 使用 Rails helper 快速生成品牌区、导航栏、页面标题与页面操作按钮
- 在布局中定义侧边栏导航,并通过 Rails 嵌套布局模拟导航层级
- 为 nested_forms 生成的后台表单字段套用统一样式
适合人群
- 使用 Rails 4 且已引入 Bootstrap 3 的项目
- 需要后台管理界面基础骨架、愿意自行填充具体内容的开发者
- 接受以 GitHub 源方式引入 gem 的团队
- 使用 Slim 模板并需要相应 helper 的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
README 注明当时没有正式发布版本,需在 Gemfile 中以 GitHub 源引入:gem 'bsat', '> 0.0.1', github: 'renspr/bsat', branch: 'master',然后执行 bundle install。
- 2
在 Sass 文件中通过 @import "bsat" 引入样式,可在 @import 之前重定义变量进行覆盖;需先手动 require bootstrap。
- 3
在 JavaScript manifest 中通过 //= require bsat 加载脚本,需先手动 require jquery 和 bootstrap。
- 4
在应用布局中调用 = bsat(yield) 渲染 BSAT 布局,再使用各 helper 填充品牌、导航、页面标题、页面操作与侧边栏内容。
- 5
依赖清单包含 rails ~> 4.0、sass-rails ~> 4.0、bootstrap-sass ~> 3.1、coffee-rails ~> 4.0、compass-rails ~> 1.1、jquery-rails ~> 3.1、font-awesome-rails ~> 4.0 和 slim ~> 2.0,引入前需确认与项目现有依赖兼容。
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- README 注明当时尚无正式发布版本,安装时需在 Gemfile 中以 GitHub 源(github: 'renspr/bsat', branch: 'master')引入,而非从 RubyGems 安装正式版本。
- 使用 Sass 样式前必须手动引入 bootstrap,BSAT 不会自动加载 Bootstrap 样式。
- 加载 BSAT 的 JavaScript 前必须手动引入 jquery 和 bootstrap,否则脚本无法正常工作。
- 项目与 rails ~> 4.0、sass-rails ~> 4.0、bootstrap-sass ~> 3.1、coffee-rails ~> 4.0、compass-rails ~> 1.1、jquery-rails ~> 3.1、font-awesome-rails ~> 4.0、slim ~> 2.0 紧密耦合,主要面向内部使用,依赖较多且不以保证精简为目标。
- BSAT 默认只提供基础 UI 骨架,具体页面内容需要使用者自行填充,并非开箱即用的完整后台系统。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
we have no official release yet, so you need to use the github source at the moment
README 原文
You need to require `bootstrap` manually before you require `bsat`.
README 原文
You need to require `jquery` and `bootstrap` manually before you require `bsat`.
README 原文
BSAT is closely coupled with the following dependencies. As BSAT is mainly developed for in-house use, reducing dependcies is not our primary goal.
README 原文
https://github.com/metaminded/bsat/blob/master/MIT-LICENSEhttps://github.com/metaminded/bsat/blob/master/README.mdBy default BSAT gives you the following UI. It's your job to fill out the gaps.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 61 / 100
- 技术栈
- Rails · HTML
- 网站类型
- 后台
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2015-06-08
- 截图检查日期
- 2026-10-03
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Rails。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 45502a2147818e7f8cd17eb96b69fa4eb73e96fddb392d8b3ac9f230807465a7
2026-10-03T03:07:01.211Z
来源文件 / 仓库BSAT
----
[](https://codeclimate.com/github/renspr/bsat)
[](https://gemnasium.com/renspr/bsat)
BSAT is an admin template build with Bootstrap 3 packaged as a Rails engine. With BSAT it's
easy to build a nice and uniform admin backend for your Rails project that works on
desktops, tablets and smartphones. Based on Bootstrap 3 BSAT adds some ready to use UI elements
and Rails helpers.
By default BSAT gives you the following UI. It's your job to fill out the gaps. Need styling?
It's Bootstrap 3!

Dependencies
------------
BSAT is closely coupled with the following dependencies. As BSAT is mainly developed for
in-house use, reducing dependcies is not our primary goal.
* [rails](http://rubygems.org/gems/rails), ~> 4.0
* [sass-rails](http://rubygems.org/gems/sass-rails), ~> 4.0
* [bootstrap-sass](http://rubygems.org/gems/bootstrap-sass), ~> 3.1
* [coffee-rails](http://rubygems.org/gems/coffee-rails), ~> 4.0
* [compass-rails](http://rubygems.org/gems/compass-rails), ~> 1.1
* [jquery-rails](http://rubygems.org/gems/jquery-rails), ~> 3.1
* [font-awesome-rails](http://rubygems.org/gems/font-awesome-rails), ~> 4.0
* [slim](http://rubygems.org/gems/slim), ~> 2.0
Installation
------------
Add it to your Gemfile (__Note__: we have no official release yet, so you need to use the github source at the moment):
```ruby
gem 'bsat', '> 0.0.1', github: 'renspr/bsat', branch: 'master'
```
Run the following command to install it:
```console
bundle install
```
### Sass
Import BSAT into a Sass file (for example, `application.css.scss`) to get all of BSAT's styles, mixins and variables!
```scss
@import "bsat";
```
The full list of BSAT variables can be found [here](https://github.com/renspr/bsat/blob/master/app/assets/stylesheets/bsat/_variables.scss). You can override these by simply redefining the variable before the `@import` directive, e.g.:
```scss
$bsat-sidebar-width: 250px;
...
@import "bsat";
```
__Please note:__ You need to require `bootstrap` manually before you require `bsat`.
### Javascript
We have a helper that includes all BSAT javascripts. Put this in your Javascript manifest (usually in `application.js`) to load the files in the correct order.
```js
// Loads all BSAT javascripts
//= require bsat
```
__Please note:__ You need to require `jquery` and `bootstrap` manually before you require `bsat`.
Usage
-----
BSAT works by defining a bunch of `content_for` variables that finally renders into the bsat template. We provide Rails helpers to help you defining the _right_ content.
### Render BSAT layout
In your application layout file you normally would call `= yield` (note we are using slim syntax here) where the main content should be rendered. To render BSAT all you have to do ist to call
```slim
= bsat(yield)
```
A complete example may look like this
```slim
doctype html
html(lang="de")
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
title BSAT Demo
= stylesheet_link_tag "application", "data-turbolinks-track" => true, "media" => "all"
= javascript_include_tag "application", "data-turbolinks-track" => true
= csrf_meta_tag
body
= bsat(yield)
```
The result is an empty BSAT view that looks like this

### Brand
To set the brand there is a helper called `bsat_brand`. You should provide the `title` and the `path/url` where
the `title` is linked to.
```slim
- bsat_brand title: 'BSAT DEMO', path: root_path
```

The helper also excepts a block that allows you to provide more than just a title string.
```slim
- bsat_brand path: root_path
=> fa_icon 'group'
= "Foo Bar"
```
### Navbar
For the navbar we provide a helper to create links on the left and on the right side of the navbar. The helper
is called `bsat_navbar`. It accepts one argument to set the side `:left` or `:right` and a block to set the links.
```slim
- bsat_navbar(:left) do |navbar|
- navbar.link 'Action', '#', icon: 'home'
- navbar.link 'Action', '#', badge: 2
- navbar.dropdown 'Dropdown' do |dropdown|
- dropdown.link 'Action', '#'
- dropdown.link 'Action', '#'
- dropdown.link 'Action', '#'
- bsat_navbar(:right) do |navbar|
- navbar.link 'Action', '#'
```

### Page title
For a page you can set a title using the `bsat_page_title` helper.
```slim
- bsat_page_title 'Dashboard'
```

### Page actions
On the right side of the page header section you can create page actions using the `bsat_page_actions` helper.
The helper expects a block defining the actions. Each action will result in a button on large displays. On smaller
devices the button will become a dropdown menu.
```slim
- bsat_page_actions do |actions|
- actions.add 'Action', '#', icon: 'plus-circle'
- actions.add 'Another Action', '#', icon: 'minus-circle'
```

### Sidebar
BSAT provides a nice sidebar that will collapse on small screens. To create the sidebar navigation use
the `bsat_sidebar_nav` helper.
```slim
- bsat_sidebar_nav do |nav|
- nav.back 'Back', '#'
- nav.link 'Action 1', '#', icon: 'bolt', active: /\A\//
- nav.link 'Action 2', '#', icon: 'desktop', active: /bar/, has_sublevel: true
- nav.divider
- nav.link "Action 3", '#', icon: 'globe', active: /baz/, badge: 12
```
__Protip™__: Define your sidebar navigation in layouts and use Rails nested layouts feature to simulate
navigation nesting.

### Nested Form Fields
When using nested_forms, BSAT provides a helper to style them adequately.
For example, your `_form.html.slim` contains this code:
```slim
= f.fields_for :tasks
```
You can now have a `_task_fields.html.slim` that adds the fields with the helper.
```slim
= bsat_nested_form_fields(f) do
= f.input :title
```
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

rails-tabler-starter
Free and open source Ruby on Rails starter kit built using Tabler
Rails · 后台

plutonium-core
Build production-ready Rails apps in minutes, not days. Convention-driven, fully customizable, AI-ready.
Rails · 后台

AdminLTE
AdminLTE - Free admin dashboard template based on Bootstrap 5
Astro · 后台

ngx-admin
Customizable admin dashboard template based on Angular 10+
Angular · 后台

gentelella
Free admin dashboard template — vanilla JS, SCSS, Vite 8. No Bootstrap, no jQuery.
HTML · 后台

coreui-free-bootstrap-admin-template
Free Bootstrap Admin & Dashboard Template Built for AI-Assisted Development
HTML · 后台
