Skip to content

Commit

Permalink
Merge pull request #15 from wadtech/master
Browse files Browse the repository at this point in the history
Add current directory to graph title
  • Loading branch information
chrishunt committed Jan 5, 2015
2 parents 6f3284a + 7240fce commit 30c796a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/git_pissed/formats/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/git_pissed/formats/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
%CSV%

,{
title: "<a href='https://github.com/chrishunt/git-pissed' target='_blank'><pre>git-pissed</pre></a>",
title: "<pre><a href='https://github.com/chrishunt/git-pissed' target='_blank'>git-pissed</a> - %PATH%</pre>",
ylabel: 'number of occurrences',
rollPeriod: 1,
fillGraph: false,
Expand Down

0 comments on commit 30c796a

Please sign in to comment.