<% unless framework_v2 %> <%= render 'plugins/github_commit_graph/v1/full', local_assigns %> <% else %> <% unless (contributions[:errors].present?) %>
<%= contributions[:total] %> Contributions in last year
<%= stats[:longest_streak] %> Longest streak
<%= stats[:current_streak] %> Current streak
<%= stats[:max_contributions] %> Most in a day
<%= stats[:average_contributions] %> Average per day
<% contributions[:commits].each do |week_of_commits| %> <% week_of_commits[:contributionDays].each do |day| %> <% end %> <% end %>
GitHub <%= instance_name %>
<%= render 'plugins/github_commit_graph/common' %> <% else %> <%= render partial: 'plugins/errors/full', locals: { icon: 'github--render.svg', title: 'GitHub', instance: instance_name, error_message: contributions[:errors] } %> <% end %> <% end %>