Skip to content

Commit

Permalink
Fix houndci violations
Browse files Browse the repository at this point in the history
  • Loading branch information
oahray committed Feb 26, 2019
1 parent ba5aaf8 commit 82e5e22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/_header.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.title-container
.user-detail-container
%h1.user-title= title
%span.total-time Joined: #{joined.strftime("%B %d, %Y")}
%p.total-time joined: #{joined.strftime("%B %d, %Y")}
= render "/time_span" if @time_series
6 changes: 4 additions & 2 deletions app/views/users/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.charts
= render @time_series.chart, time_series: @time_series
.charts
= render "/charts/pie_chart", title: t("charts.hours_spent_per_project"), data: @entry_stats.hours_for_subject_collection(Project.all).to_json
= render "/charts/pie_chart", title: t("charts.hours_spent_per_category"), data: @entry_stats.hours_for_subject_collection(Category.all).to_json
= render "/charts/pie_chart", title: t("charts.hours_spent_per_project"),
data: @entry_stats.hours_for_subject_collection(Project.all).to_json
= render "/charts/pie_chart", title: t("charts.hours_spent_per_category"),
data: @entry_stats.hours_for_subject_collection(Category.all).to_json
= link_to t("users.show.entries"), user_entries_path(@user)

0 comments on commit 82e5e22

Please sign in to comment.