Permalink
Browse files

removed challenge_admin files

  • Loading branch information...
1 parent 5e53938 commit 7ae2ff94f9345a705b449bac61a84143d2ea7a1f @jeffdonthemic jeffdonthemic committed Aug 1, 2012
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
-// Place all the styles related to the ChallengeAdmin controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,65 +0,0 @@
-<ul>
- <li><h2><span><%= @challenge_detail["Name"] %></span></h2></li>
- <% if Time.parse(@challenge_detail['End_Date__c']).past? && !['Created','Hidden'].include?(@challenge_detail['Status__c']) %>
- <li><h3>Status</h3><h2><span><%= @challenge_detail['Status__c'] %></span></h2></li>
- <% else %>
- <li><h3>Time Left For Submission</h3><h2><span><%= format_close_date_time(@challenge_detail['End_Date__c']) %></span></h2></li>
- <% end %>
-
- <li><h3>Total Prize Amount</h3><h2><span><%= number_to_currency(@challenge_detail["Total_Prize_Money__c"], :precision => 0) %></span></h2></li>
-
- <% if @challenge_detail["Challenge_Prizes__r"] %>
- <li><h3>Prizes</h3>
- <ul>
- <% @challenge_detail["Challenge_Prizes__r"]["records"].each do |record| %>
- <li><span><%= record["Place__c"].to_i.ordinalize %> <%= record["Prize__c"] %></span><br /></li>
- <% end %>
- </ul>
- </li>
- <% end %>
-
- <li><h3>Winner Announced</h3><strong><span>
- <% if @challenge_detail["Status__c"].eql?("Winner Selected") %>
- <%= link_to "View the Winners", results_path %></span></strong>
- <% else %>
- <%= Date.parse(@challenge_detail["Winner_Announced__c"]).strftime("%B %e, %Y") %>
- <% end %></span></strong></li>
-
- <li style="display:block;"><h3>Participants</h3>
- <strong><span><a href="<%= registrants_path %>"><%= pluralize(@challenge_detail["Registered_Members__c"].to_i, 'Member') %> Registered</a></span></strong>
- </li>
-
- <% unless @challenge_detail['License_Type__r'].nil? %>
- <li style="display:block;"><h3>License</h3>
- <strong><span>
- <%= link_to @challenge_detail['License_Type__r']['Name'], @challenge_detail['License_Type__r']['URL__c'], :target => '_blank' %>
- <% if @challenge_detail["Release_to_Open_Source__c"] %> - The results of this challenge will be<br/>released at <a href="http://www.github.com/cloudspokes" target="_blank">GitHub.</a><% end %></span></strong>
- </li>
- <% end %>
-
- <% end %>
- <li><h3>Assets</h3>
- <ul>
- <% if @challenge_detail["Assets__r"].nil? %>
- <li><strong><span style="width: 300px; text-align: left">No assets found for this challenge.<br /><br /></span></strong></li>
- <% else %>
- <% @challenge_detail["Assets__r"]["records"].each do |record| %>
- <li><strong><a href="https://s3.amazonaws.com/<%= ENV['AMAZON_S3_DEFAULT_BUCKET'] %>/challenges/<%= params[:id] %>/<%= record["Filename__c"] %>" target="_blank"><%= record["Filename__c"] %></a></strong></li>
- <% end %>
- <% end %>
- </ul>
- </li>
- <li>
- <h3>Delivery Formats</h3>
- <ul>
- <li><strong>HTML</strong></li>
- <li><strong>Word</strong></li>
- <li><strong>Google Doc</strong></li>
- <li><strong>Text</strong></li>
- <li><strong>RT</strong></li>
- <li><strong>Other:</strong> Upload a text document<br />with details on how to retrieve<br />your submission.</li>
- </ul>
- </li>
- <%= render "shared/share" %>
-
-</ul>
@@ -1,78 +0,0 @@
-<div class="page two-cols-bg top-border">
-<!-- Content Wrapper -->
- <div class="challenge-content-wrapper">
- <!-- Widecolumn -->
- <div class="widecolumn fl dvbulletedlist">
- <!-- Challenge Information -->
- <div class="challenge-information">
- <span style="font-size:Small;font-weight:bold;"></span>
- <h3>Technologies</h3>
- <div class="list-technologies">
- <ul>
- <% if @challenge_detail["Challenge_Categories__r"] %>
- <table cellspacing="0" border="0" style="border-collapse:collapse;">
- <tr>
- <% @challenge_detail["Challenge_Categories__r"]["records"].each do |record| %>
- <td><li><a href="/challenges?category=<%= record["Display_Name__c"] %>"><span><%= record["Display_Name__c"] %></span></a></li></td>
- <% end %>
- </tr>
- </table>
- <% else %>
- <table cellspacing="0" border="0" style="border-collapse:collapse;">
- <tr>
- <td><li><span>No Technologies Selected</span></li></td>
- </tr>
- </table>
- <% end %>
- </ul>
- </div>
-
- <%= flash_messages %>
-
- <% if !@challenge_detail["Description__c"].nil? %>
- <h3>Overview</h3>
- <p><%= raw(@challenge_detail["Description__c"])%></p>
- <% end %>
-
- <% if !@challenge_detail["Requirements__c"].nil? %>
- <h3>Challenge Requirements</h3>
- <p><%= raw(@challenge_detail["Requirements__c"]) %></p>
- <% end %>
-
- <h3>Submission Details</h3>
- <% if !@challenge_detail["Submission_Details__c"].nil? %>
- <p><%= raw(@challenge_detail["Submission_Details__c"]) %></p>
- <% end %>
- <p>Your submission will be judged by a panel of peers based upon <%= link_to 'this criteria', scorecard_display_url(@challenge_detail["Challenge_Id__c"]) %>.</p>
-
- <% if !@challenge_detail["Additional_Info__c"].nil? %>
- <h3>Additional Info</h3>
- <p><%= raw(@challenge_detail["Additional_Info__c"]) %></p>
- <% end %>
-
- </div><br/><br/>
-
- <!-- END Challenge Information -->
-
- <!-- Discussion -->
- <!-- don't show the discussion board -->
- <!-- END Discussion -->
-
-
- </div>
- <!-- END Widecolumn -->
- <!-- Sidebar -->
- <div class="sidebar fr">
-
- <!-- Challenge Sidebar -->
- <div class="challenge-sidebar">
- <%= render "challenge-sidebar" %>
- </div>
- <!-- END Challenge Sidebar -->
-
- </div>
- <!-- END Sidebar -->
- <div class="cl">&nbsp;</div>
- </div>
- <!-- END Content Wrapper -->
-</div>
@@ -1 +0,0 @@
-<%= raw(@page["html"])%>
@@ -1,20 +0,0 @@
-<%= raw(@page["html"])%>
-
-<!-- Google Code for Cloudspokes Sign-Up Conversion Page -->
-<script type="text/javascript">
-/* <![CDATA[ */
-var google_conversion_id = 1064594833;
-var google_conversion_language = "en";
-var google_conversion_format = "3";
-var google_conversion_color = "ffffff";
-var google_conversion_label = "Mr4GCNOhhAIQkdvR-wM";
-var google_conversion_value = 0;
-/* ]]> */
-</script>
-<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
-</script>
-<noscript>
-<div style="display:inline;">
-<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1064594833/?label=Mr4GCNOhhAIQkdvR-wM&amp;guid=ON&amp;script=0"/>
-</div>
-</noscript>
@@ -1,12 +0,0 @@
-require 'spec_helper'
-
-describe ChallengeAdminController do
-
- describe "GET 'preview'" do
- it "returns http success" do
- get 'preview'
- response.should be_success
- end
- end
-
-end
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the ChallengeAdminHelper. For example:
-#
-# describe ChallengeAdminHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe ChallengeAdminHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe "challenge_admin/preview.html.erb" do
- pending "add some examples to (or delete) #{__FILE__}"
-end

0 comments on commit 7ae2ff9

Please sign in to comment.