From 7e38fb42afa5eb2894c4fe34d26a1f45bcefdec3 Mon Sep 17 00:00:00 2001
From: Diego Araújo
Date: Mon, 18 Apr 2016 15:09:40 -0300
Subject: [PATCH] Add clipboard feature for the notify push url
---
CHANGELOG.rdoc | 1 +
app/views/repositories/show.html.erb | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc
index e123d00..f090eb3 100644
--- a/CHANGELOG.rdoc
+++ b/CHANGELOG.rdoc
@@ -14,6 +14,7 @@ Prezento is the web interface for Mezuro.
* Add missing translation for CompoundMetric
* Make Compound Metric Config. metric list not include Hotspot metrics
* Fix 'Tree Metrics' and 'Hotspot Metrics' PT translations in Configuration show view
+* Show the notify push url for the repository's owner (Gitlab only)
== v0.11.3 - 01/04/2016
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index 3e8d07a..5e3549b 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -38,10 +38,12 @@
<% if repository_owner? @repository.id %>
-
- <%= t('repository.show.notify_push_url') %>:
- <%= repository_notify_push_url(@repository.id) %>
-
+ <%= t('repository.show.notify_push_url') %>:
+
+
+
<% end %>
<%= t('repository.show.date_processing') %>:
@@ -81,9 +83,14 @@
<%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %>
+
+
+<%= javascript_include_tag "https://cdn.rawgit.com/zenorocha/clipboard.js/v1.5.10/dist/clipboard.min.js" %>
+