Skip to content

Commit

Permalink
[#20 state:closed] [#21 state:closed] froze gravatar, fixed user admi…
Browse files Browse the repository at this point in the history
…n crud
  • Loading branch information
gaffo committed Oct 29, 2008
1 parent caf7cdf commit be7a005
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 637 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/users_controller.rb
@@ -1,6 +1,8 @@
class Admin::UsersController < Admin::AdminBaseController
active_scaffold :user do |config|
config.list.columns = [:name, :is_admin, :author_feeds]
config.create.columns = [:name, :email, :is_admin, :password]
config.update.columns = [:name, :email, :is_admin, :password]
config.columns.exclude :created_at, :updated_at
config.columns[:author_feeds].form_ui = :select
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/user/show.html.erb
@@ -1,5 +1,5 @@
<h1><%= @record.name %></h1>
<%= image_tag(@record.gravatar_url) unless @record.email.nil? %>
<h1><%= image_tag(@record.gravatar_url) unless @record.email.nil? %> <%= @record.name %></h1>

<% @record.posts.each do |post| %>
<div class="post">
<p class="date"><%= post.posted_date %><b><%= post.author_feed.name %></b></p>
Expand Down
20 changes: 0 additions & 20 deletions vendor/gems/gravtastic-2.0.0/LICENSE

This file was deleted.

95 changes: 0 additions & 95 deletions vendor/gems/gravtastic-2.0.0/README.textile

This file was deleted.

72 changes: 0 additions & 72 deletions vendor/gems/gravtastic-2.0.0/Rakefile

This file was deleted.

182 changes: 0 additions & 182 deletions vendor/gems/gravtastic-2.0.0/lib/gravtastic.rb

This file was deleted.

0 comments on commit be7a005

Please sign in to comment.