This instance will be upgraded to Heptapod 0.25.0 (final) on 2021-09-22 at 15:00 UTC+2 (a few minutes of down time)

Commit 3fdfe62b authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Restoring file edit/replace buttons

Closes #107

--HG--
branch : heptapod
parent 2ca40a76a418
......@@ -10,3 +10,12 @@
= open_raw_blob_button(blob)
= download_blob_button(blob)
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
.btn-group{ role: "group" }<
= render_if_exists 'projects/blob/header_file_locks_link'
= edit_blob_button
= ide_edit_button
- if current_user
= replace_blob_link
= delete_blob_link
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path
......@@ -8,3 +8,9 @@
#tree-holder.tree-holder
= render 'blob', blob: @blob
- if can_modify_blob?(@blob)
= render 'projects/blob/remove'
- title = "Replace #{@blob.name}"
= render 'projects/blob/upload', title: title, placeholder: title, button_title: 'Replace file', form_path: project_update_blob_path(@project, @id), method: :put
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment