mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-05-30 16:30:59 +00:00
Purged git history and removed sensitive information.
This commit is contained in:
commit
6bcc8dc76b
862 changed files with 25312 additions and 0 deletions
18
app/helpers/gathers_helper.rb
Normal file
18
app/helpers/gathers_helper.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
module GathersHelper
|
||||
def render_gather
|
||||
if @gather.status == Gather::STATE_RUNNING
|
||||
headers["Gather"] = "running"
|
||||
render :partial => "running", :layout => false
|
||||
elsif @gather.status == Gather::STATE_VOTING
|
||||
if @gatherer and @gather.gatherer_votes.first(:conditions => {:user_id => cuser.id})
|
||||
headers["Gather"] = "voted"
|
||||
else
|
||||
headers["Gather"] = "voting"
|
||||
end
|
||||
render :partial => "voting", :layout => false
|
||||
elsif @gather.status == Gather::STATE_PICKING or @gather.status == Gather::STATE_FINISHED
|
||||
headers["Gather"] = "picking"
|
||||
render :partial => "picking", :layout => false
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue