Commit 95b3b685 authored by Douwe Maan's avatar Douwe Maan

Add copy button to blob header and use icon for Raw button

parent 74702b41
- if @environment
.btn-group<
.btn-group{ role: "group" }<
= clipboard_button(clipboard_target: ".blob-content[data-blob-id='#{@blob.id}']", class: "btn btn-sm")
= link_to icon('download'), namespace_project_raw_path(@project.namespace, @project, @id),
class: 'btn btn-sm has-tooltip', target: '_blank', title: 'Download raw', data: { container: 'body' }
- if @environment
= view_on_environment_button(@commit.sha, @path, @environment)
.btn-group{ role: "group" }<
= link_to 'Raw', namespace_project_raw_path(@project.namespace, @project, @id),
class: 'btn btn-sm', target: '_blank'
-# only show normal/blame view links for text files
- if blob_text_viewable?(@blob)
- if current_page? namespace_project_blame_path(@project.namespace, @project, @id)
......
---
title: Add copy button to blob header and use icon for Raw button
merge_request:
author:
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