From 7240fce15660fe48eb7c8382c42b140de7c29e11 Mon Sep 17 00:00:00 2001 From: Peter Mellett Date: Mon, 22 Dec 2014 11:50:33 +0000 Subject: [PATCH] add current directory to graph title --- lib/git_pissed/formats/html.rb | 2 +- lib/git_pissed/formats/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git_pissed/formats/html.rb b/lib/git_pissed/formats/html.rb index 07582a4..f0702dc 100644 --- a/lib/git_pissed/formats/html.rb +++ b/lib/git_pissed/formats/html.rb @@ -7,7 +7,7 @@ def name def formatted File.read( File.expand_path('../templates/index.html', __FILE__) - ).gsub("%CSV%", csv) + ).gsub("%CSV%", csv).gsub("%PATH%", File.basename(Dir.pwd)) end def csv diff --git a/lib/git_pissed/formats/templates/index.html b/lib/git_pissed/formats/templates/index.html index 27cfd73..65f2b7b 100644 --- a/lib/git_pissed/formats/templates/index.html +++ b/lib/git_pissed/formats/templates/index.html @@ -44,7 +44,7 @@ %CSV% ,{ - title: "
git-pissed
", + title: "
git-pissed - %PATH%
", ylabel: 'number of occurrences', rollPeriod: 1, fillGraph: false,