mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
parent
6e30737bf0
commit
23642355bf
2 changed files with 8 additions and 7 deletions
|
@ -34,12 +34,15 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_commit_link
|
def current_commit_link
|
||||||
hash = CURRENT_COMMIT_HASH
|
hash = `git rev-parse --short HEAD`
|
||||||
current_repo = CURRENT_COMMIT_REPO.gsub('com:', 'com/')
|
current_repo = `git remote get-url origin`.gsub('com:', 'com/')
|
||||||
.gsub('git@', 'https://')
|
.gsub('git@', 'https://')
|
||||||
.gsub('.git', '')
|
.gsub('.git', '')
|
||||||
|
|
||||||
link_to hash.to_s, "#{current_repo}/commit/#{hash}", class: 'footer-version-link'
|
link_to hash.to_s, "#{current_repo}/commit/#{hash}",
|
||||||
|
class: 'footer-version-link',
|
||||||
|
target: '_blank',
|
||||||
|
rel: 'noopener'
|
||||||
end
|
end
|
||||||
|
|
||||||
def creator_link(model)
|
def creator_link(model)
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
CURRENT_COMMIT_HASH = `git rev-parse --short HEAD`
|
|
||||||
CURRENT_COMMIT_REPO = `git remote get-url origin`
|
|
Loading…
Add table
Add a link
Reference in a new issue