This repository was archived by the owner on Nov 17, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,32 +44,32 @@ def welcome
4444 end
4545
4646 def balance_over_time
47- @title = "Api Example \u00B7 Balance"
47+ @title = "Balance"
4848 @data = JSON . unparse ( current_user . get_balance_over_time )
4949 end
5050
5151 def balances_over_time_with_friends
52- @title = "Api Example \u00B7 Balance with friends"
52+ @title = "Balance with friends"
5353 @data = JSON . unparse ( current_user . get_balances_over_time_with_friends )
5454 end
5555
5656 def expenses_over_time
57- @title = "Api Example \u00B7 Expenses"
57+ @title = "Expenses"
5858 @data = JSON . unparse ( current_user . get_expenses_over_time_cumulative )
5959 end
6060
6161 def expenses_by_category
62- @title = "Api Example \u00B7 Expenses by category"
62+ @title = "Expenses by category"
6363 @data = JSON . unparse ( current_user . get_expenses_by_category )
6464 end
6565
6666 def expenses_by_category_over_time
67- @title = "Api Example \u00B7 Category history"
67+ @title = "Category history"
6868 @data = JSON . unparse ( current_user . get_expenses_by_category_over_time_cumulative )
6969 end
7070
7171 def expenses_matching
72- @title = "Api Example \u00B7 Search an expense"
72+ @title = "Search an expense"
7373 @data = JSON . unparse ( current_user . get_expenses_matching_cumulative ( params [ :query ] ) )
7474 end
7575
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
33 < head >
4- < title > <%= @title %> </ title >
4+ < title > Api Example <%= " \u00B7 #{ @title } " if @title %> </ title >
55 < link rel ='shortcut icon ' href ='http://localhost:3000/favicon.ico '/>
66 <%= stylesheet_link_tag "application" , :media => "all" %>
77 <%= javascript_include_tag "application" %>
You can’t perform that action at this time.
0 commit comments