forked from bborn/communityengine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes to invitations and contests controllers
- Loading branch information
Bruno Bornsztein
committed
Nov 13, 2008
1 parent
c99a03b
commit ae9c167
Showing
19 changed files
with
147 additions
and
107 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
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,31 @@ | ||
.yui-b | ||
= render :partial => 'shared/admin_nav' if current_user.admin? | ||
|
||
#yui-main | ||
.yui-b | ||
.box | ||
%h3= :contests.l | ||
= link_to :new_contest.l, new_contest_path | ||
|
||
%table{:width=>"100%"} | ||
%tr | ||
%th= :date.l | ||
%th= :title.l | ||
%th= :description.l | ||
%th= :begin.l | ||
%th= :end.l | ||
%th= :actions.l | ||
|
||
- for contest in @contests | ||
%tr | ||
%td=h contest.created_at.strftime("%m/%d/%y") | ||
%td=h contest.title | ||
%td=h truncate(contest.post, 250) | ||
%td=h contest.begin.strftime("%m/%d/%y") | ||
%td=h contest.end.strftime("%m/%d/%y") | ||
%td | ||
= link_to :show.l, contest_path(contest) | ||
%br | ||
= link_to :edit.l, edit_contest_path(contest) | ||
%br | ||
= link_to :destroy.l, contest_path(contest), :confirm => :are_you_sure.l, :method => :delete |
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,31 +1,12 @@ | ||
.yui-b | ||
= render :partial => 'shared/admin_nav' if current_user.admin? | ||
|
||
|
||
#yui-main | ||
.yui-b | ||
.box | ||
%h3= :contests.l | ||
= link_to :new_contest.l, new_contest_path | ||
|
||
%table{:width=>"100%"} | ||
%tr | ||
%th= :date.l | ||
%th= :title.l | ||
%th= :description.l | ||
%th= :begin.l | ||
%th= :end.l | ||
%th= :actions.l | ||
|
||
- for contest in @contests | ||
%tr | ||
%td=h contest.created_at.strftime("%m/%d/%y") | ||
%td=h contest.title | ||
%td=h truncate(contest.post, 250) | ||
%td=h contest.begin.strftime("%m/%d/%y") | ||
%td=h contest.end.strftime("%m/%d/%y") | ||
%td | ||
= link_to :show.l, contest_path(contest) | ||
%br | ||
= link_to :edit.l, edit_contest_path(contest) | ||
%br | ||
= link_to :destroy.l, contest_path(contest), :confirm => :are_you_sure.l, :method => :delete | ||
- @contests.each do |contest| | ||
%h2 | ||
=link_to contest.title, contest | ||
%small | ||
%em=contest.time_and_date |
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 was deleted.
Oops, something went wrong.
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,35 @@ | ||
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/util.js"} | ||
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/basic.js"} | ||
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/abc_launcher.js"} | ||
|
||
.yui-b | ||
.box.alt.first_alt | ||
%h3=:spread_the_word.l | ||
%p | ||
=:the_more_people_you_invite_the_better.l | ||
= AppConfig.community_name | ||
=:becomes.l | ||
%p | ||
=:people_who_sign_up_using_your_invitation_will_automatically_be_added_as_your_friends_on.l | ||
= AppConfig.community_name | ||
\. | ||
|
||
#yui-main | ||
.yui-b | ||
.box | ||
%h3=:invite_your_friends_to_join.l | ||
- form_for(:invitation, :url => user_invitations_path(:user_id => @user.id ), :html => {:class => "MainForm"} ) do |f| | ||
.right | ||
%a{"href"=>"#", "onclick"=>"showPlaxoABChooser('invitation_email_addresses', '/application/plaxo'); return false;"} | ||
%img{"src"=>"http://www.plaxo.com/images/abc/buttons/add_button.gif", "alt"=>:add_from_my_address_book.l}/ | ||
%label{"for"=>"email_addresses"} | ||
=:enter_e_mail_addresses.l | ||
%em= :comma_separated.l | ||
= f.text_area :email_addresses , :rows => "5" | ||
%label{"for"=>"message"}= :write_a_message.l | ||
= f.text_area :message, :rows => "5" | ||
|
||
%p | ||
= submit_tag :send_invitations.l | ||
or | ||
= link_to :cancel.l, user_path(@user) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.