From 0590da056efcdfea3b9590d957ea82bd341e53e0 Mon Sep 17 00:00:00 2001 From: differentreality Date: Sun, 28 Jul 2013 13:11:34 +0300 Subject: [PATCH] Do not show New submission button if cfp is closed, unless organizer or admin --- app/views/proposal/index.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/proposal/index.html.haml b/app/views/proposal/index.html.haml index 8c8d175a..9674ebb0 100644 --- a/app/views/proposal/index.html.haml +++ b/app/views/proposal/index.html.haml @@ -4,6 +4,7 @@ %h2.pull-left = "My Proposals for #{@conference.title}" .pull-right{:style=>"margin-top:20px;"} + - if @conference.cfp_open? || organizer_or_admin? = link_to "New Proposal", new_conference_proposal_path(@conference.short_title), :class => "btn btn-primary" - if @person.proposal_count(@conference) > 0 .row-fluid