Mercurial > zeropaste
changeset 56:8ef70e8c239d
Bootstrap-styled error message.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 05:04:30 +0700 |
parents | f957ce997ff0 |
children | 85e9dc5df11c |
files | app/views/pastes/_form.html.erb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/pastes/_form.html.erb Thu Oct 04 04:50:22 2012 +0700 +++ b/app/views/pastes/_form.html.erb Thu Oct 04 05:04:30 2012 +0700 @@ -1,7 +1,7 @@ <%= form_for(@paste) do |f| %> <% if @paste.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2> + <div class="alert alert-error" id="error_explanation"> + <h5><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h5> <ul> <% @paste.errors.full_messages.each do |msg| %>