mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
parent
6e30737bf0
commit
23642355bf
2 changed files with 8 additions and 7 deletions
|
@ -34,12 +34,15 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def current_commit_link
|
||||
hash = CURRENT_COMMIT_HASH
|
||||
current_repo = CURRENT_COMMIT_REPO.gsub('com:', 'com/')
|
||||
.gsub('git@', 'https://')
|
||||
.gsub('.git', '')
|
||||
hash = `git rev-parse --short HEAD`
|
||||
current_repo = `git remote get-url origin`.gsub('com:', 'com/')
|
||||
.gsub('git@', 'https://')
|
||||
.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
|
||||
|
||||
def creator_link(model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue