summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-16 12:45:30 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-16 12:45:30 +0200
commitad5a6a4ae1fa784b2a6ecac8cc9791e23ec8f134 (patch)
treea60992b8b69c4e69410fb28342980f261ab8825c
parent76e1ca64301d52fb25b0a0e8cb9d513ba7d33c46 (diff)
downloadgitlab-ce-ad5a6a4ae1fa784b2a6ecac8cc9791e23ec8f134.tar.gz
Improve flash messages in tree#update
-rw-r--r--app/controllers/tree_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/tree_controller.rb b/app/controllers/tree_controller.rb
index 475e2b61a18..2781d791cbd 100644
--- a/app/controllers/tree_controller.rb
+++ b/app/controllers/tree_controller.rb
@@ -34,9 +34,9 @@ class TreeController < ProjectResourceController
)
if update_status
- redirect_to project_tree_path(@project, @id), :notice => "File has been successfully changed"
+ redirect_to project_tree_path(@project, @id), notice: "Your changes have been successfully commited"
else
- flash[:notice] = "You can't save file because it has been changed"
+ flash[:notice] = "Your changes could not be commited, because the file has been changed"
render :edit
end
end