Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
adrianshort
/
suttonelections
kopie van
https://github.com/adrianshort/suttonelections.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Publicaties
2
Wiki
Activiteit
Bladeren bron
Display flash errors and notices
tags/last-sinatra-version
Adrian Short
12 jaren geleden
bovenliggende
14e806be52
commit
06deeab3c9
2 gewijzigde bestanden
met
toevoegingen van 12
en
0 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+6
-0
public/style.css
+6
-0
views/layout.haml
+ 6
- 0
public/style.css
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan