Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:mcommons/legislative-lookup
Conflicts: README
- Loading branch information
Showing
1,595 changed files
with
216,939 additions
and
160 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
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,9 @@ | ||
<% @districts.each do | d | %> | ||
<% case d.level when 'federal' %> | ||
<span class="federal"> <%= d.display_name %> Congressional District</span> | ||
<% when 'state_upper'%> | ||
<span class="state_upper"> <%= d.display_name %> Upper House District</span> | ||
<% when 'state_lower'%> | ||
<span class="state_lower"> <%= d.display_name %> Lower House District</span> | ||
<% end %> | ||
<% 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<%= link_to(image_tag("/images/georss.gif"), :controller => 'districts', :action => 'lookup', :format => 'georss', :lat => params[:lat], :lng => params[:lng]) %> | ||
<%= link_to(image_tag("/images/ge.gif"), :controller => 'districts', :action => 'lookup', :format => 'kml', :lat => params[:lat], :lng => params[:lng]) %> | ||
<%= link_to(image_tag("/images/xml.jpg"), :controller => 'districts', :action => 'lookup', :format => 'xml', :lat => params[:lat], :lng => params[:lng]) %> | ||
<%= link_to(image_tag("/images/xml.jpg"), :controller => 'districts', :action => 'lookup', :format => 'xml', :lat => params[:lat], :lng => params[:lng]) %> | ||
<%= link_to(image_tag("/images/json.gif"), :controller => 'districts', :action => 'lookup', :format => 'json', :lat => params[:lat], :lng => params[:lng]) %> |
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<response> | ||
<reply> | ||
<text> | ||
<![CDATA[<%= @districts.collect{|d| d.title}.join(', ')%>]]> | ||
</text> | ||
</reply> | ||
</response> |
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,2 @@ | ||
page << @map.add_overlay(@polygon) | ||
page << @map.set_center(@center,@zoom) |
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,55 @@ | ||
set :application, "congress" | ||
set :user, "deploy" | ||
set :runner, "deploy" | ||
set :scm, "git" | ||
set :repository_host, "dev.mcommons.com" | ||
set :repository, "#{user}@#{repository_host}:/repos/ligerhorn.git" | ||
set :temp_deployment_dir, "/tmp/mcommons_deploy" | ||
set :deploy_to, "/apps/congress" | ||
set :repository_cache, "cached-copy" | ||
set :checked_out_repo, "#{deploy_to}/shared/#{repository_cache}" | ||
set :monit, "/usr/bin/monit" | ||
|
||
|
||
|
||
set :campfire_subdomain, "mcommons" | ||
set :campfire_ssl, true | ||
set :campfire_email, "mse-6@mcommons.com" | ||
set :campfire_password, "Rebaxan" | ||
set :campfire_room, "Mobile Commons" | ||
|
||
set :ssh_options, { :paranoid => false, :port => 7822 } | ||
|
||
depend :remote, :gem, "mongrel", ">=1.0.1", :roles => :app | ||
depend :remote, :gem, "mongrel_cluster", ">=1.0.1.1", :roles => :app | ||
depend :remote, :gem, "postgres", ">=0.7", :roles => :app | ||
|
||
role :app, "congress.mcommons.com" | ||
role :web, "congress.mcommons.com" | ||
role :db, "congress.mcommons.com", :primary => true | ||
|
||
|
||
namespace :deploy do | ||
|
||
desc "Deploy and start the app servers" | ||
task :cold do | ||
update | ||
start | ||
end | ||
|
||
desc "Start Mongrel processes on the app server." | ||
task :start , :roles => :app do | ||
sudo "#{monit} -g mongrel start all" | ||
end | ||
|
||
desc "Restart the Mongrel processes on the app server by starting and stopping the cluster." | ||
task :restart , :roles => :app do | ||
sudo "#{monit} -g mongrel restart all" | ||
end | ||
|
||
desc "Stop the Mongrel processes on the app server." | ||
task :stop , :roles => :app do | ||
sudo "#{monit} -g mongrel stop all" | ||
end | ||
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
Oops, something went wrong.