-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin tabs, Mailing Scheduler, Dropdown Menu all completed (#65)
* Fixing Submitted and Creating new teams bugs * fixed dropdown menu and boostrapped it and the warning -- SID M * fixed dasols comments * Mailing scheduling works * accepted pending forming done * Changed paths.rb for testing purposes * wtf git log * fixed dasol's pr * moved the home link again * made tests pass and rebased with master * added in home link
- Loading branch information
1 parent
fd651ed
commit 2d513fe
Showing
12 changed files
with
75 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
class TeamController < ApplicationController | ||
|
||
before_filter :set_user, :set_team | ||
|
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
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,6 @@ | ||
desc "This task is called by the Heroku scheduler add-on" | ||
task :admin_emails => :environment do | ||
puts "Sending Emails to Admins..." | ||
AdminMailer.send_look_at_submission | ||
puts "done." | ||
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 |
---|---|---|
|
@@ -16,11 +16,11 @@ | |
Admin.create!({:name => "admin", :email => "[email protected]", :password => "123"}) | ||
session[:user_id] = 1 | ||
session[:is_admin] = true | ||
get :show, {:id => 1} | ||
get :show_all, {:id => 1} | ||
response.should render_template(:show) | ||
|
||
Admin.find_by_id(1).destroy! | ||
get :show, {:id => 1} | ||
get :show_all, {:id => 1} | ||
response.should redirect_to(logout_path) | ||
end | ||
end | ||
|