Fix flash messages. Add styles. Refs #263

This commit is contained in:
Pavel Chipiga 2012-03-03 03:05:19 +02:00
parent 914f469fb2
commit a0f0c24f88
3 changed files with 4 additions and 2 deletions

View File

@ -283,6 +283,8 @@ div.comment div.comment-right {
float: right;
}
div.comment textarea { resize: none }
#repo-wrapper div.file div.data .formatted {
overflow-x: auto;
overflow-y: none;

View File

@ -46,7 +46,7 @@ class GroupsController < ApplicationController
redirect_to group_path(@group)
else
flash[:error] = t('flash.group.save_error')
flash[:warning] = @group.errors[:base]
flash[:warning] = @group.errors.full_messages.join('. ')
render :action => :new
end
end

View File

@ -52,7 +52,7 @@ class ProjectsController < ApplicationController
redirect_to @project
else
flash[:error] = t('flash.project.save_error')
flash[:warning] = @project.errors[:base]
flash[:warning] = @project.errors.full_messages.join('. ')
render :action => :new
end
end