forked from spen/seminar
92 lines
3.4 KiB
Plaintext
92 lines
3.4 KiB
Plaintext
<% # encoding: utf-8 %>
|
|
|
|
<%
|
|
data = action_data
|
|
@seminar = data["seminar"]
|
|
@sign_up = data["sign_up"]
|
|
@sign_up_time_range = data["sign_up_time_range"]
|
|
@seminar_time_range = data["seminar_time_range"]
|
|
@contribute_time_range = data["contribute_time_range"]
|
|
@contribute_action = data["contribute_action"]
|
|
%>
|
|
|
|
|
|
<table class="table table-striped seminarive-show-table">
|
|
<tbody >
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= t(:category) %></th>
|
|
<td class="seminarive-title-value"><%= @seminar.category.title %></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('seminar.event_during') %></th>
|
|
<td class="seminarive-title-value"><%= @seminar_time_range %></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= t('seminar.title') %></th>
|
|
<td class="seminarive-title-value"><%= @seminar.title %></td>
|
|
</tr>
|
|
<% if !@seminar.speaker.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= t('seminar.speaker') %></th>
|
|
<td class="seminarive-title-value"><%= @seminar.speaker %></td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@seminar.content.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= t('seminar.content') %></th>
|
|
<td class="seminarive-title-value"><%= nl2br(@seminar.content) %></td>
|
|
</tr>
|
|
<% end %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('seminar.signup_during') %></th>
|
|
<td class="seminarive-title-value"><%= @sign_up_time_range %></td>
|
|
</tr>
|
|
<% if !@contribute_time_range.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('seminar.contribute_during') %></th>
|
|
<td class="seminarive-title-value"><%= @contribute_time_range %></td>
|
|
</tr>
|
|
<% end %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= t('seminar.signup') %></th>
|
|
<td class="seminarive-title-value"><%= @sign_up %><br /><%= @contribute_action %></td>
|
|
</tr>
|
|
<% if !@seminar.act_place.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="icon-flag"></i><%= t('seminar.act_place') %></th>
|
|
<td class="seminarive-title-value"><%= @seminar.act_place %></td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@seminar.seminar_files.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="fa fa-fw fa-paperclip"></i><%= t(:file_) %></th>
|
|
<td class="seminarive-title-value">
|
|
<% @seminar.seminar_files.map do |file| %>
|
|
<%= link_to (file.title.blank? ? File.basename(file.file.path) : file.title) , file.file.url, {:target => '_blank', :title => file.description} if file.file.file %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@seminar.seminar_links.blank? %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><i class="fa fa-fw fa-link"></i><%= t(:link) %></th>
|
|
<td class="seminarive-title-value">
|
|
<% @seminar.seminar_links.map do |link| %>
|
|
<%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% @seminar.seminar_item_contents.asc(:_id).each do |item_content| %>
|
|
<tr>
|
|
<th class="seminarive-title-field"><%= item_content.seminar_item.title %></th>
|
|
<td class="seminarive-title-value"><%= item_content.content.html_safe %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<%= link_to t(:close), 'javascript:window.close();', :class => 'btn btn-primary' %>
|