From 38737079b6c1096c2517e249198b8bc0bedf4156 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 9 Feb 2013 15:26:47 +0200 Subject: ignore docs by git --- doc/code/classes/TreeController.html | 264 ----------------------------------- 1 file changed, 264 deletions(-) delete mode 100644 doc/code/classes/TreeController.html (limited to 'doc/code/classes/TreeController.html') diff --git a/doc/code/classes/TreeController.html b/doc/code/classes/TreeController.html deleted file mode 100644 index 35c99bc09e4..00000000000 --- a/doc/code/classes/TreeController.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - TreeController - - - - - - - - - - - - - -
-
- -
- -

Controller for viewing a repository’s file structure

- -
- - - - - - - - - - - - - - - -
Methods
-
- -
E
-
-
    - - -
  • - edit -
  • - -
-
- -
S
-
-
    - - -
  • - show -
  • - -
-
- -
U
-
- -
- -
- - - - -
Included Modules
- - - - - - - - - - - - - - - - - - - -
Instance Public methods
- -
-
- - edit() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/tree_controller.rb, line 24
-def edit
-  @last_commit = @project.last_commit_for(@ref, @path).sha
-end
-
-
- -
- -
-
- - show() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/tree_controller.rb, line 13
-def show
-  @hex_path  = Digest::SHA1.hexdigest(@path)
-  @logs_path = logs_file_project_ref_path(@project, @ref, @path)
-
-  respond_to do |format|
-    format.html
-    # Disable cache so browser history works
-    format.js { no_cache_headers }
-  end
-end
-
-
- -
- -
-
- - update() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/controllers/tree_controller.rb, line 28
-def update
-  edit_file_action = Gitlab::Satellite::EditFileAction.new(current_user, @project, @ref, @path)
-  updated_successfully = edit_file_action.commit!(
-    params[:content],
-    params[:commit_message],
-    params[:last_commit]
-  )
-
-  if updated_successfully
-    redirect_to project_tree_path(@project, @id), notice: "Your changes have been successfully commited"
-  else
-    flash[:notice] = "Your changes could not be commited, because the file has been changed"
-    render :edit
-  end
-end
-
-
- -
-
- -
- - \ No newline at end of file -- cgit v1.2.1