mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 10:36:04 +10:00
23 lines
924 B
Plaintext
23 lines
924 B
Plaintext
.btn-group.tree-btn-group
|
|
= edit_blob_link(@project, @ref, @path)
|
|
= link_to 'Raw', project_raw_path(@project, @id),
|
|
class: 'btn btn-small', target: '_blank'
|
|
-# only show normal/blame view links for text files
|
|
- if @blob.text?
|
|
- if current_page? project_blame_path(@project, @id)
|
|
= link_to 'Normal View', project_blob_path(@project, @id),
|
|
class: 'btn btn-small'
|
|
- else
|
|
= link_to 'Blame', project_blame_path(@project, @id),
|
|
class: 'btn btn-small' unless @blob.empty?
|
|
= link_to 'History', project_commits_path(@project, @id),
|
|
class: 'btn btn-small'
|
|
- if @ref != @commit.sha
|
|
= link_to 'Permalink', project_blob_path(@project,
|
|
tree_join(@commit.sha, @path)), class: 'btn btn-small'
|
|
|
|
- if allowed_tree_edit?
|
|
= button_tag class: 'remove-blob btn btn-small btn-remove',
|
|
'data-toggle' => 'modal', 'data-target' => '#modal-remove-blob' do
|
|
Remove
|