Commit d0758ec5
Changed files (7)
app
controllers
admin
views
admin
blobs
charts
config
app/controllers/admin/charts_controller.rb
@@ -1,6 +0,0 @@
-module Admin
- class ChartsController < AdminController
- def index
- end
- end
-end
app/views/admin/blobs/index.html.erb
@@ -1,24 +0,0 @@
-<div class="row-fluid">
- <div class="span2">
- <%= render partial: "my/shared/my_nav" %>
- </div>
- <div class="span10">
- <h1>Blobs <small><%= @objects.count %></small></h1>
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>bucket</th>
- <th>key</th>
- </tr>
- </thead>
- <tbody>
- <% @objects.each do |object| %>
- <tr>
- <td><%= object.bucket.name %></td>
- <td><%= link_to object.key, admin_blob_path(object.key) %></td>
- </tr>
- <% end %>
- </tbody>
- </table>
- </div>
-</div>
app/views/admin/blobs/show.html.erb
@@ -1,30 +0,0 @@
-<div class="row-fluid">
- <div class="span2">
- <%= render partial: "my/shared/my_nav" %>
- </div>
- <div class="span10">
- <h1>Blob <small><%= @object.key %></small></h1>
- <p><%= link_to "<< Back", admin_blobs_path %></p>
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>id</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><%= link_to @object.key, admin_blob_path(@object.key) %></td>
- </tr>
- </tbody>
- </table>
- <ul>
- <li><%= @object.acl %></li>
- <li><%= @object.versions %></li>
- <li><%= @object.public_url %></li>
- <li><%= @object.last_modified %></li>
- <li><%= @object.etag %></li>
- <li><%= @object.content_type %></li>
- <li><%= @object.content_length %></li>
- </ul>
- </div>
-</div>
app/views/admin/charts/index.html.erb
@@ -1,24 +0,0 @@
-<div class="row-fluid">
- <div class="span2">
- <%= render partial: "my/shared/my_nav" %>
- </div>
- <div class="span10">
- <h1>User Sessions <small>(<%= UserSession.count %>)</small></h1>
- <%= line_chart UserSession.group_by_month(:created_at).count %>
-
- <h1>Registrations <small>(<%= User.count %>)</small></h1>
- <%= line_chart User.group_by_month(:created_at).count %>
-
- <h1>Comments <small>(<%= Comment.count %>)</small></h1>
- <%= line_chart Comment.group_by_month(:created_at).count %>
-
- <h1>Favorites <small>(<%= Favorite.count %>)</small></h1>
- <%= line_chart Favorite.group_by_month(:created_at).count %>
-
- <h1>Photos <small>(<%= Photo.count %>)</small></h1>
- <%= line_chart Photo.group_by_month(:created_at).count %>
-
- <h1>Locations <small>(<%= Location.count %>)</small></h1>
- <%= geo_chart Location.group(:country).count %>
- </div>
-</div>
config/routes.rb
@@ -86,7 +86,6 @@ Cake::Application.routes.draw do
resources :errors, only: [:index, :create]
resources :sessions, only: [:index, :destroy]
resources :products, only: [:index, :show, :create]
- resources :charts, only: [:index]
end
namespace :my do
Gemfile
@@ -35,8 +35,6 @@ gem 'browser_sniffer'
gem 'asin'
gem 'curb'
gem 'github-markdown'
-gem 'chartkick'
-gem 'groupdate'
gem 'rack-cors', require: 'rack/cors'
gem 'email_validator'
gem 'font-awesome-rails'
Gemfile.lock
@@ -521,7 +521,6 @@ GEM
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
- chartkick (2.2.4)
chef (12.21.4)
addressable
bundler (>= 1.10)
@@ -642,14 +641,9 @@ GEM
formatador (0.2.5)
fuzzyurl (0.9.0)
geoip (1.6.3)
- gibbon (3.1.0)
- faraday (>= 0.9.1)
- multi_json (>= 1.11.0)
github-markdown (0.6.9)
globalid (0.4.0)
activesupport (>= 4.2.0)
- groupdate (3.2.0)
- activesupport (>= 3)
hashie (3.5.6)
highline (1.7.8)
http (2.2.2)
@@ -955,7 +949,6 @@ DEPENDENCIES
capistrano-bundler (~> 1.1)
capistrano-rails
capistrano-rbenv (~> 2.0)
- chartkick
chef
coffee-rails (~> 4.1.0)
curb
@@ -974,9 +967,7 @@ DEPENDENCIES
font-awesome-rails
foreman
geoip
- gibbon
github-markdown
- groupdate
i18n-tasks
jbuilder (~> 2.0)
jquery-rails