Sha256: d5ddfd648588217e2ac3135c6981579ab9cd87a53c87aad87c1d6b798f4bfee2

Contents?: true

Size: 827 Bytes

Versions: 3

Compression:

Stored size: 827 Bytes

Contents

:javascript
  $(document).ready(function() {
    $("#dayofweek_table").tablesorter();
  });
- block(:day_of_week) do
  .blockdiagram
    %img{ :src => 'commits_per_wday.png' }
  %a.toggle{:href => '#'} Table
  .blocktable.toggleable
    %table#dayofweek_table.tablesorter.striped
      %thead
        %tr
          %th Weekday
          %th Commits
          %th Files added
          %th Files deleted
          %th Lines added
          %th Lines deleted
      %tbody
        - for wday in 0..6
          - s = stats.wday_stats[(wday + 1) % 7]
          %tr
            %th&= weekday(wday)
            %td&= (s.nil? ? 0 : s.commits)
            %td&= (s.nil? ? 0 : s.files_added)
            %td&= (s.nil? ? 0 : s.files_deleted)
            %td&= (s.nil? ? 0 : s.lines_added)
            %td&= (s.nil? ? 0 : s.lines_deleted)

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
gitstats-rb-2.0.0 template/gnuplot/partials/day_of_week.haml
gitstats-ruby-1.0.1 template/partials/day_of_week.haml
gitstats-ruby-1.0.0 template/partials/day_of_week.haml