Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating stuff #6

Merged
merged 3 commits into from
Feb 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/assets/javascripts/angular/worklogs/client.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ app.factory "Client", ["RailsResource", (RailsResource)->

nameOrCompanyName: ->
if @name.length
@name
"#{@name} [#{@user.username}]"
else
@companyName

"#{@companyName} [#{@user.username}]"
Client
]
23 changes: 0 additions & 23 deletions app/assets/javascripts/public/kpis.js.coffee

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@
@import "static"
@import "worklogs"
@import "tutorial"
@import kpis
@import "responsive_fixes"
6 changes: 0 additions & 6 deletions app/assets/stylesheets/kpis.css.sass

This file was deleted.

3 changes: 2 additions & 1 deletion app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def index
@clients = @clients.updated_since(params[:updated_since])
end
end
format.json {render json: current_user.clients_and_shared_clients}
format.json {render json: current_user.clients_and_shared_clients.to_json(include: :user)}
end
end

Expand Down Expand Up @@ -89,4 +89,5 @@ def activity
end
@form.aggregate
end

end
11 changes: 0 additions & 11 deletions app/controllers/kpis_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/kpis_helper.rb

This file was deleted.

137 changes: 0 additions & 137 deletions app/models_no_database/kpi.rb

This file was deleted.

44 changes: 0 additions & 44 deletions app/views/kpis/_data.html.slim

This file was deleted.

38 changes: 0 additions & 38 deletions app/views/kpis/new.html.slim

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/layouts/_header.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ nav.navbar.navbar-default role="navigation"
= link_to "Invoices", invoices_path
li
= link_to "Edit defaults", edit_invoice_default_path(current_user.invoice_default)
li
= link_to "KPI", new_kpi_path
- if not_on_home?
li
= link_to "Tutorial", show_tutorial_path, class: "show-tutorial"
Expand Down
4 changes: 0 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Timetracker::Application.routes.draw do

get "kpis/new"

root :to => "static#home"

resources :users, only: [:new, :create, :show, :edit, :update] do
Expand All @@ -14,7 +12,6 @@
get :shared_clients
end
end
resources :kpis, only: [:new, :create]
resources :clients do
member do
get "activity"
Expand Down Expand Up @@ -58,5 +55,4 @@
get "show_tutorial" => "tutorial#show", as: "show_tutorial"

get "/auth/:provider/callback" => "sessions#auth_provider_callback"

end