Fix flash messages. Add styles. Refs #263
This commit is contained in:
parent
914f469fb2
commit
a0f0c24f88
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue