From ca07fe6130fa7ff769938771b76657c4cdd70ccf Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 9 Jun 2017 16:44:34 +0200
Subject: [PATCH] ci webgui - doublecklick in project overview

---
 config/lang/de.json                                      | 2 ++
 config/lang/en.json                                      | 1 +
 public_html/deployment/classes/htmlguielements.class.php | 2 +-
 public_html/deployment/classes/project.class.php         | 2 +-
 public_html/deployment/classes/projectlist.class.php     | 4 +++-
 5 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/config/lang/de.json b/config/lang/de.json
index cca5b909..6fb3fe5b 100644
--- a/config/lang/de.json
+++ b/config/lang/de.json
@@ -22,6 +22,7 @@
     
     "overview-label": "&Uuml;bersicht",
     "overview-hint":"Alle Projekte und Versionen in den einzelnen Phasen",
+    "overview-hint-dblclick":"Doppelklick um das Projetk [%s] zu &ouml;ffnen",
     "overview-filter":"Filter",
     "overview-filter-hint":"in der erweiterten Ansicht nur dieses Projekt anzeigen",
     "overview-simpleview":"zur einfachen Ansicht",
@@ -230,6 +231,7 @@
     "deploy": "Deploy",
     "deploy-hint": "Deploy der Queue von Phase [%s]",
     "deploy-impossible": "Deploy der Queue von Phase [%s] ist nicht m&ouml;glich.",
+    "deploy-settings": "Deployment-Einstellungen",
     "deploytimes": "Deployment Zeitpunkte",
     "deploytimes-immediately": "Ein Archiv in der Queue wird sofort ins Repo gestellt.",
     "deploymethod": "Deployment-Methode",
diff --git a/config/lang/en.json b/config/lang/en.json
index aa857a36..cfb1dc9e 100644
--- a/config/lang/en.json
+++ b/config/lang/en.json
@@ -232,6 +232,7 @@
     "deploy": "Deploy",
     "deploy-hint": "Deploy queue of phase [%s]",
     "deploy-impossible": "Deploy queue of phase [%s] is not possible.",
+    "deploy-settings": "Deployment settings",
     "deploymethod": "Deployment method",
     "deploymethod-none": "None. Do not trigger any action.",
     "deploymethod-puppet": "Run Puppet on target host(s)",
diff --git a/public_html/deployment/classes/htmlguielements.class.php b/public_html/deployment/classes/htmlguielements.class.php
index 7287faff..2ffa3698 100644
--- a/public_html/deployment/classes/htmlguielements.class.php
+++ b/public_html/deployment/classes/htmlguielements.class.php
@@ -84,7 +84,7 @@ class htmlguielements{
             'package'=>'fa-cubes',
             'version'=>'fa-tag',
             'list'=>'fa-list',
-            
+
             'back'=>'fa-chevron-left',
             
             'branch'=>'glyphicon-bookmark',
diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index e84a6c89..e885839a 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -2755,7 +2755,7 @@ class project extends base {
 
         // render html
         $sId = 'info' . md5($sInfos);
-        $sReturn = '<a href="#" class="btn ' . ($bIsError ? 'btn-danger' : 'btn-default') . '" onclick="showIdAsModalMessage(\'' . $sId . '\'); return false;">'
+        $sReturn = '<a href="#" class="btn ' . ($bIsError ? 'btn-danger' : 'btn-default') . '" title="" onclick="showIdAsModalMessage(\'' . $sId . '\'); return false;">'
                 // . '<i class="fa fa-info"></i> '
                 . $sLinktitle
                 . '</a><div id="' . $sId . '" style="display: none;" ';
diff --git a/public_html/deployment/classes/projectlist.class.php b/public_html/deployment/classes/projectlist.class.php
index c90d6efc..cc0e5908 100644
--- a/public_html/deployment/classes/projectlist.class.php
+++ b/public_html/deployment/classes/projectlist.class.php
@@ -110,7 +110,9 @@ class projectlist extends base{
 
             // render output
             $sOut.='
-                <tr class="' . $sPrj . ' ' . $sTrClass . '">
+                <tr class="' . $sPrj . ' ' . $sTrClass . '" '
+                    . 'ondblclick="location.href=\'/deployment/' . $sPrj . '/\'" '
+                    . 'title="'.sprintf(t("overview-hint-dblclick"),$sPrj).'">
                     <td class="prj">
                         <strong>'
                         .$oHtml->getLink(array(
-- 
GitLab