Start working on commit message tooltips
[gitphp.git] / include / controller / Controller_Commit.class.php
blob:a/include/controller/Controller_Commit.class.php -> blob:b/include/controller/Controller_Commit.class.php
--- a/include/controller/Controller_Commit.class.php
+++ b/include/controller/Controller_Commit.class.php
@@ -45,6 +45,9 @@
 	 */
 	protected function GetTemplate()
 	{
+		if (isset($this->params['jstip']) && $this->params['jstip']) {
+			return 'committip.tpl';
+		}
 		return 'commit.tpl';
 	}
 
@@ -87,6 +90,10 @@
 			$this->params['hash'] = $_GET['h'];
 		else
 			$this->params['hash'] = 'HEAD';
+
+		if (isset($_GET['o']) && ($_GET['o'] == 'jstip')) {
+			$this->params['jstip'] = true;
+		}
 	}
 
 	/**

comments