使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
adrianshort
/
suttonelections
镜像自地址
https://github.com/adrianshort/suttonelections.git
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
2
百科
动态
浏览代码
Display flash errors and notices
tags/last-sinatra-version
Adrian Short
12 年前
父节点
14e806be52
当前提交
06deeab3c9
共有
2 个文件被更改
,包括
12 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+6
-0
public/style.css
+6
-0
views/layout.haml
+ 6
- 0
public/style.css
查看文件
@@ -185,6 +185,12 @@ tr
padding: 10px 25px;
}
#notice {
background-color: green;
color: white;
padding: 10px 20px;
}
#error {
background-color: red;
color: white;
+ 6
- 0
views/layout.haml
查看文件
@@ -8,6 +8,12 @@
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
%body
#main
- if flash[:notice]
#notice
%p= flash[:notice]
- if flash[:error]
#error
%p= flash[:error]
= yield
#footer
#footer_inner
撰写
预览
正在加载...
取消
保存