<% # encoding: utf-8 %>

<table>
<caption> <%= t("writing_conference") %> </caption>
<tbody>
<tr><th><%= t("writing_conference.year")%></th><td><%= @writing_conference.year %></td></tr>
<tr><th><%= t("writing_conference.language")%></th><td><%= @writing_conference.language %></td></tr>
<tr><th><%= t("writing_conference.paper_title")%></th><td><%= @writing_conference.paper_title %></td></tr>
<tr><th><%= t("writing_conference.conference_title")%></th><td><%= @writing_conference.conference_title %></td></tr>
<tr><th><%= t("writing_conference.conference_paper_types")%></th><td><%= @conference_paper_types %></td></tr>
<tr><th><%= t("writing_conference.conference_author_types")%></th><td><%= @conference_author_types %></td></tr>
<tr><th><%= t("writing_conference.location")%></th><td><%= @writing_conference.location %></td></tr>
<tr><th><%= t("writing_conference.sponsor")%></th><td><%= @writing_conference.sponsor %></td></tr>
<tr><th><%= t("writing_conference.period_start_date")%></th><td><%= @writing_conference.period_start_date %></td></tr>
<tr><th><%= t("writing_conference.period_end_date")%></th><td><%= @writing_conference.period_end_date %></td></tr>
<tr><th><%= t("writing_conference.abstract")%></th><td><%= @writing_conference.abstract %></td></tr>
<tr><th><%= t("writing_conference.publication_date")%></th><td><%= @writing_conference.publication_date %></td></tr>
<tr><th><%= t("writing_conference.url")%></th><td><%= link_to t(:url), @writing_conference.url, {:target => '_blank', :title => @writing_conference.conference_title} if !@writing_conference.url.blank? %></td></tr>
<tr><th><%= t("writing_conference.note")%></th><td><%= @writing_conference.note %></td></tr>
<tr><th><%= t("writing_conference.authors")%></th><td><%= "#{User.from_id(@writing_conference.create_user_id).name rescue ''},#{@writing_conference.authors rescue ''}"%></td></tr>
<tr><th><%= t("writing_conference.files")%></th>
<td>
<% if @writing_conference.writing_conference_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @writing_conference.writing_conference_files.each do | wsfile | %>
					<%= link_to wsfile.title, wsfile.file.url, {:target => '_blank', :title => wsfile.title} if wsfile.file.file %>
					<% end %>
			</div>
		</div>
	<% end %>
</td>
</tr>
</tbody>
</table>
