diff --git a/assets/images/icons/code-climate-icon.png b/assets/images/icons/code-climate-icon.png
new file mode 100644
index 00000000..4d547a94
Binary files /dev/null and b/assets/images/icons/code-climate-icon.png differ
diff --git a/assets/images/icons/code-climate-logo.png b/assets/images/icons/code-climate-logo.png
new file mode 100644
index 00000000..4c739e45
Binary files /dev/null and b/assets/images/icons/code-climate-logo.png differ
diff --git a/assets/scripts/app/templates/repos/show/actions.hbs b/assets/scripts/app/templates/repos/show/actions.hbs
index 190794c2..19a9a0c4 100644
--- a/assets/scripts/app/templates/repos/show/actions.hbs
+++ b/assets/scripts/app/templates/repos/show/actions.hbs
@@ -1,14 +1,5 @@
- {{#if view.displayCodeClimate}}
-
-
-
- {{/if}}
{{#if view.displayStatusImages}}
{{/if}}
+ {{#if view.displayCodeClimate}}
+
+
+
+ {{/if}}
+
diff --git a/assets/scripts/app/templates/repos/show/tools.hbs b/assets/scripts/app/templates/repos/show/tools.hbs
index cf716a07..a53d413e 100644
--- a/assets/scripts/app/templates/repos/show/tools.hbs
+++ b/assets/scripts/app/templates/repos/show/tools.hbs
@@ -43,9 +43,20 @@
diff --git a/assets/scripts/app/views/repo/show.coffee b/assets/scripts/app/views/repo/show.coffee
index e25366b3..bed0db46 100644
--- a/assets/scripts/app/views/repo/show.coffee
+++ b/assets/scripts/app/views/repo/show.coffee
@@ -222,9 +222,15 @@ Travis.reopen
).property('tab')
displayCodeClimate: (->
+ console.log @get('repo.githubLanguage')
Travis.config.code_climate == "true" and @get('repo.githubLanguage') == 'Ruby'
).property('repo.githubLanguage')
+ codeClimatePopup: ->
+ @popupCloseAll()
+ @popup('code-climate')
+ event.stopPropagation()
+
requeueBuild: ->
if @get('canRequeueBuild')
@get('build').requeue()
diff --git a/assets/scripts/travis.coffee b/assets/scripts/travis.coffee
index 5f45ef68..308c36d6 100644
--- a/assets/scripts/travis.coffee
+++ b/assets/scripts/travis.coffee
@@ -75,6 +75,7 @@ $.extend Travis,
pusher_key: $('meta[name="travis.pusher_key"]').attr('value')
ga_code: $('meta[name="travis.ga_code"]').attr('value')
code_climate: $('meta[name="travis.code_climate"]').attr('value')
+ code_climate_url: $('meta[name="travis.code_climate_url"]').attr('value')
CONFIG_KEYS: ['go', 'rvm', 'gemfile', 'env', 'jdk', 'otp_release', 'php', 'node_js', 'perl', 'python', 'scala', 'compiler']
diff --git a/assets/styles/main/tools.sass b/assets/styles/main/tools.sass
index 792c398e..3acd8047 100644
--- a/assets/styles/main/tools.sass
+++ b/assets/styles/main/tools.sass
@@ -36,6 +36,18 @@
cursor: default
color: $color-link-disabled
+#code-climate
+ a
+ text-decoration: underline
+ font-weight: bold
+
+ img
+ code-climate-logo
+ float: right
+ width: 150px
+ margin-top: 5px
+ margin-right: 10px
+
#actions
float: right
text-align: right
diff --git a/public/images/icons/code-climate-icon.png b/public/images/icons/code-climate-icon.png
new file mode 100644
index 00000000..4d547a94
Binary files /dev/null and b/public/images/icons/code-climate-icon.png differ
diff --git a/public/images/icons/code-climate-logo.png b/public/images/icons/code-climate-logo.png
new file mode 100644
index 00000000..4c739e45
Binary files /dev/null and b/public/images/icons/code-climate-logo.png differ
diff --git a/public/index.html b/public/index.html
index 5949c82f..fb4970ef 100644
--- a/public/index.html
+++ b/public/index.html
@@ -5,7 +5,6 @@
-
Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community