Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Refactor page titles a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rofreg committed Apr 30, 2013
1 parent e8e0e20 commit 01409b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/controllers/user_controller.rb
Expand Up @@ -44,32 +44,32 @@ def welcome
end

def balance_over_time
@title = "Api Example \u00B7 Balance"
@title = "Balance"
@data = JSON.unparse(current_user.get_balance_over_time)
end

def balances_over_time_with_friends
@title = "Api Example \u00B7 Balance with friends"
@title = "Balance with friends"
@data = JSON.unparse(current_user.get_balances_over_time_with_friends)
end

def expenses_over_time
@title = "Api Example \u00B7 Expenses"
@title = "Expenses"
@data = JSON.unparse(current_user.get_expenses_over_time_cumulative)
end

def expenses_by_category
@title = "Api Example \u00B7 Expenses by category"
@title = "Expenses by category"
@data = JSON.unparse(current_user.get_expenses_by_category)
end

def expenses_by_category_over_time
@title = "Api Example \u00B7 Category history"
@title = "Category history"
@data = JSON.unparse(current_user.get_expenses_by_category_over_time_cumulative)
end

def expenses_matching
@title = "Api Example \u00B7 Search an expense"
@title = "Search an expense"
@data = JSON.unparse(current_user.get_expenses_matching_cumulative(params[:query]))
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= @title %></title>
<title>Api Example<%= " \u00B7 #{@title}" if @title %></title>
<link rel='shortcut icon' href='http://localhost:3000/favicon.ico'/>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
Expand Down

0 comments on commit 01409b8

Please sign in to comment.