-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Ajax Pagination to board screens. Issue 13 Editing an item no longer moves it to the starting position.
- Loading branch information
Showing
56 changed files
with
3,646 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
class Board < ActiveRecord::Base | ||
cattr_reader :per_page | ||
@@per_page = 5 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="ui-widget-header"><center>BernardBoard</center></div> | ||
<center><div id="boards_table"> | ||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Width</th> | ||
<th>Height</th> | ||
</tr> | ||
|
||
<% @boards.each do |board| %> | ||
<tr> | ||
<td><%=h board.name %></td> | ||
<td><%=h board.width %></td> | ||
<td><%=h board.height %></td> | ||
<td><%= link_to 'Show', board %></td> | ||
<td> <%= link_to_remote "Delete Board", | ||
:url => {:action => "delete_board"}, | ||
:html => {:class => "board_item"}, | ||
:with => "'name=' + '#{board.name}'" %> </td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
<div id="board_paginate"><%= will_paginate @boards %></div> | ||
</div></center> | ||
<div style="position:absolute;bottom:10%;right:10%;"><%= link_to 'Edit and Create boards', :action => :index, :controller => :griditems %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
CHANGELOG.rdoc | ||
LICENSE | ||
README.rdoc | ||
Rakefile | ||
examples/apple-circle.gif | ||
examples/index.haml | ||
examples/index.html | ||
examples/pagination.css | ||
examples/pagination.sass | ||
init.rb | ||
lib/will_paginate.rb | ||
lib/will_paginate/array.rb | ||
lib/will_paginate/collection.rb | ||
lib/will_paginate/core_ext.rb | ||
lib/will_paginate/finder.rb | ||
lib/will_paginate/named_scope.rb | ||
lib/will_paginate/named_scope_patch.rb | ||
lib/will_paginate/version.rb | ||
lib/will_paginate/view_helpers.rb | ||
test/boot.rb | ||
test/collection_test.rb | ||
test/console | ||
test/database.yml | ||
test/finder_test.rb | ||
test/fixtures/admin.rb | ||
test/fixtures/developer.rb | ||
test/fixtures/developers_projects.yml | ||
test/fixtures/project.rb | ||
test/fixtures/projects.yml | ||
test/fixtures/replies.yml | ||
test/fixtures/reply.rb | ||
test/fixtures/schema.rb | ||
test/fixtures/topic.rb | ||
test/fixtures/topics.yml | ||
test/fixtures/user.rb | ||
test/fixtures/users.yml | ||
test/helper.rb | ||
test/lib/activerecord_test_case.rb | ||
test/lib/activerecord_test_connector.rb | ||
test/lib/load_fixtures.rb | ||
test/lib/view_test_process.rb | ||
test/tasks.rake | ||
test/view_test.rb |
Oops, something went wrong.