Disable graphing
Disable graphing

I've gotten complaints that my graphs are not user friendly :(

Seriously though, the graphs are kind of clumsy. I was still learning d3
at the time. After implementing a number of graphs in other projects,
I've gotten a much better handle on using d3 and I would like to rework
the graphs before release to make a good first impression. Plus I need
to consider how to handle the fact that some browsers (IE8, I'm looking
at you) don't support SVG.

All the code still exists but the entry points have been disabled.

--- a/config/gitphp.conf.defaults.php
+++ b/config/gitphp.conf.defaults.php
@@ -247,14 +247,6 @@
  * Linux
  */
 $gitphp_conf['filemimetype'] = true;
-
-/*
- * graphs
- * Enable access to graphing and analytics features.
- * Loading graph data can be resource intensive, especially
- * on large projects.
- */
-$gitphp_conf['graphs'] = false;
 
 /*
  * abbreviateurl

--- a/include/router/Router.class.php
+++ b/include/router/Router.class.php
@@ -482,15 +482,11 @@
 
 			case 'graph':
 			case 'graphs':
-				$controller = new GitPHP_Controller_Graph();
-				break;
-
-
+				//$controller = new GitPHP_Controller_Graph();
+				//break;
 			case 'graphdata':
-				$controller = new GitPHP_Controller_GraphData();
-				break;
-
-
+				//$controller = new GitPHP_Controller_GraphData();
+				//break;
 			default:
 				if (!empty($params['project'])) {
 					$controller = new GitPHP_Controller_Project();

--- a/templates/nav.tpl
+++ b/templates/nav.tpl
@@ -44,12 +44,4 @@
    {else}
      <a href="{geturl project=$project action=tree hashbase=$treecommit hash=$tree}">{t}tree{/t}</a>
    {/if}
-   {if $enablegraphs}
-   |
-   {if $current=='graph' || !$commit}
-     {t}graph{/t}
-   {else}
-     <a href="{geturl project=$project action=graph}">{t}graph{/t}</a>
-   {/if}
-   {/if}
 

comments