Skip to content

Commit

Permalink
Merge bac1165 into 77015ee
Browse files Browse the repository at this point in the history
  • Loading branch information
bkutil committed Apr 14, 2015
2 parents 77015ee + bac1165 commit 60b9904
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 58 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ gem 'cancancan'
gem 'gravtastic'
# for markdown rendering
gem 'redcarpet'
# for view presenters/decorators
gem 'draper'
# for token input
gem 'selectize-rails'
# as state machine
Expand Down
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ GEM
devise (>= 2.2)
diff-lcs (1.2.5)
docile (1.1.5)
draper (2.1.0)
actionpack (>= 3.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
request_store (~> 1.0)
erubis (2.7.0)
execjs (2.4.0)
factory_girl (4.5.0)
Expand Down Expand Up @@ -224,7 +219,6 @@ GEM
rainbow (2.0.0)
rake (10.4.2)
redcarpet (3.2.2)
request_store (1.1.0)
responders (2.1.0)
railties (>= 4.2.0, < 5)
rest-client (1.7.3)
Expand Down Expand Up @@ -331,7 +325,6 @@ DEPENDENCIES
database_cleaner
devise
devise_ichain_authenticatable
draper
factory_girl_rails
faker
figaro
Expand Down
40 changes: 0 additions & 40 deletions app/decorators/project_decorator.rb

This file was deleted.

4 changes: 2 additions & 2 deletions app/views/projects/_list.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-if projects
%table.table
%thead
- ProjectDecorator.decorate_collection(projects).each_with_index do |project, index|
- projects.each_with_index do |project, index|
%tr
%td{:class => "#{project.aasm_state}"}
= render :partial => "projects/list_item", :locals => {:project => project, :index => index }
= render :partial => "projects/list_item", :locals => {:project => project, :index => index }
8 changes: 3 additions & 5 deletions app/views/projects/_list_item.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

%p{:style=>"margin-top: -10px"}
%small
= project.state_name
= render :partial => "projects/state_name", :locals => {:project => project }
by
= link_to(user_path(project.originator.id)) do
#{project.originator.name}
= project.like_button
= render :partial => "projects/like_button", :locals => {:project => project }
:markdown
#{truncate(project.description, length: 140)}
- unless project.users.empty?
Expand All @@ -19,6 +19,4 @@
= image_tag(user.gravatar_url(:size => "24"), :class => "img-thumbnail", :title => "#{user.name}", :alt => user.name)
%span.help-block
%small
= project.updated_at
= project.kudos
= project.grab_it_link
= render :partial => "projects/info", :locals => {:project => project }
2 changes: 1 addition & 1 deletion app/views/projects/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
.col-sm-12
%table.table#project_table
%thead
- ProjectDecorator.decorate_collection(@projects).each_with_index do |project, index|
- @projects.each_with_index do |project, index|
%tr
%td{:class => "#{project.aasm_state}"}
= render :partial => "projects/list_item", :locals => {:project => project, :index => index }
Expand Down
2 changes: 1 addition & 1 deletion app/views/search/result.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- unless @projects.empty?
%table.table#project_table
%thead
- ProjectDecorator.decorate_collection(@projects).each_with_index do |project, index|
- @projects.each_with_index do |project, index|
%tr
%td{:class => "#{project.aasm_state}"}
= render :partial => "projects/list_item", :locals => {:project => project, :index => index }
Expand Down

0 comments on commit 60b9904

Please sign in to comment.