diff --git a/app/helpers/notices_helper.rb b/app/helpers/notices_helper.rb index 5240f5f..017f0a6 100644 --- a/app/helpers/notices_helper.rb +++ b/app/helpers/notices_helper.rb @@ -33,7 +33,7 @@ module NoticesHelper def link_to_bitbucket(app, line, text = nil) file_name, file_path = filepath_parts(line['file']) - href = "%s#L%s" % [app.bitbucket_url_to_file(file_path), line['number']] + href = "%s#cl-%s" % [app.bitbucket_url_to_file(file_path), line['number']] link_to(text || file_name, href, :target => '_blank') end diff --git a/app/views/apps/index.html.haml b/app/views/apps/index.html.haml index 13cc749..2eca925 100644 --- a/app/views/apps/index.html.haml +++ b/app/views/apps/index.html.haml @@ -6,10 +6,8 @@ %thead %tr %th Name - - if any_github_repos? - %th GitHub Repo - - if any_bitbucket_repos? - %th Bitbucket Repo + - if any_github_repos? or any_bitbucket_repos? + %th Repository - if any_issue_trackers? %th Tracker - if any_deploys? @@ -19,12 +17,10 @@ - @apps.each do |app| %tr %td.name= link_to app.name, app_path(app) - - if any_github_repos? + - if any_github_repos? or any_bitbucket_repos? %td.github_repo - if app.github_repo? = link_to(app.github_repo, app.github_url, :target => '_blank') - - if any_bitbucket_repos? - %td.github_repo - if app.bitbucket_repo? = link_to(app.bitbucket_repo, app.bitbucket_url, :target => '_blank') - if any_issue_trackers? -- libgit2 0.21.2