<% # encoding: utf-8 %> <% @@session = session %> <%= yield %> <% data = action_data @venue_management = data["venue_management"] @venue_management_signup = data["venue_management_signup"] @time_now = data["time_now"] %> <% if @venue_management.contribute_start_date <= @time_now and ( @venue_management.contribute_end_date.nil? or @venue_management.contribute_end_date+1 >= @time_now ) %> <% if !session[:venue_management_signup_id].blank? %> <%= t('venue_management_signup.logout') %> <% @venue_management_signup.venue_management_signup_contributes.each do |venue_management_signup_contribute| %> <% end %>

<%= @venue_management.title %>

<%= t('venue_management_signup.file_name') %> <%= t('venue_management_signup.file_note') %> <%= t('venue_management_signup.files') %> <%= t(:action) %>
<%= venue_management_signup_contribute.title %> <%= venue_management_signup_contribute.description.to_s.html_safe %> <%= link_to File.basename(venue_management_signup_contribute.file.path), venue_management_signup_contribute.file.url, {:target => '_blank', :title => Nokogiri::HTML(venue_management_signup_contribute.description).text} if venue_management_signup_contribute.file.file %> <%= link_to t(:edit), OrbitHelper.url_to_show(@venue_management.to_param) + '?method=edit_file&con_no=' + venue_management_signup_contribute.id, :class => 'btn btn-primary' %>
<%= submit_tag t(:delete_), class: "btn btn-primary" %> ">
<% if ( @venue_management.contribute_file_count.blank? or @venue_management_signup.venue_management_signup_contributes.count < @venue_management.contribute_file_count.to_i ) %> <%= link_to content_tag(:i, nil, :class => 'icon-plus') +' '+ t('new_'), OrbitHelper.url_to_show(@venue_management.to_param) + '?method=add_file', :class => 'btn btn-primary' %> <% end %>

<% else %> 請先登入
回列表頁 <% end %> <% else %> 已截止 <% end %>