forked from appelier/bigtuna
-
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.
ajax reloading and eager loading to projects#show
- Loading branch information
Showing
9 changed files
with
33 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ gem "shout-bot" | |
gem "tinder" | ||
|
||
|
||
|
||
group :development, :test do | ||
|
||
gem "capybara" | ||
|
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,9 +1,10 @@ | ||
- @builds.each do |build| | ||
%div{:class => "#{build.status} project", :id => dom_id(build)} | ||
- unless BigTuna.read_only? | ||
.info | ||
= form_tag(build_path(build), :method => "DELETE") do | ||
%button.crit_button{:type => "submit"} Delete | ||
%h3= link_to(build.display_name, build_path(build, :stderr => build.status == Build::STATUS_OK ? nil : 1)) | ||
%table.value_list | ||
= render :partial => "builds/build_data", :locals => {:build => build} | ||
#builds | ||
- @builds.each do |build| | ||
%div{:class => "#{build.status} project", :id => dom_id(build)} | ||
- unless BigTuna.read_only? | ||
.info | ||
= form_tag(build_path(build), :method => "DELETE") do | ||
%button.crit_button{:type => "submit"} Delete | ||
%h3= link_to(build.display_name, build_path(build, :stderr => build.status == Build::STATUS_OK ? nil : 1)) | ||
%table.value_list | ||
= render :partial => "builds/build_data", :locals => {:build => build} |
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,8 +1,9 @@ | ||
#listing | ||
= render :partial => 'projects' | ||
|
||
%script | ||
$(document).ready(function(){setInterval('reloadProjects()', 5000);}); | ||
|
||
- content_for :sidebar do | ||
- unless BigTuna.read_only? | ||
%li= link_to("New project", new_project_path, :class => 'black_button') | ||
|
||
%script | ||
$(document).ready(function(){setInterval(reloadProjects, 5000);}); |
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 @@ | ||
$("#builds").html("<%= escape_javascript(render(:partial => 'builds')) %>"); |
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