<% # encoding: utf-8 %>

<table>
	<caption> <%= t("module_name.personal_conference") %> </caption>
	<tbody>
		<% if !@writing_conference.year.blank? %>
		<tr><th><%= t("personal_conference.year")%></th><td><%= @writing_conference.year %></td></tr>
		<% end %>

		<% if !@writing_conference.language.blank? %>
		<tr><th><%= t("personal_conference.language")%></th><td><%= @writing_conference.language %></td></tr>
		<% end %>

		<% if !@writing_conference.paper_title.blank? %>
		<tr><th><%= t("personal_conference.paper_title")%></th><td><%= @writing_conference.paper_title %></td></tr>
		<% end %>

		<% if !@writing_conference.conference_title.blank? %>
		<tr><th><%= t("personal_conference.conference_title")%></th><td><%= @writing_conference.conference_title %></td></tr>
		<% end %>

		<% if !@conference_paper_types.blank? %>
		<tr><th><%= t("personal_conference.paper_type")%></th><td><%= @conference_paper_types %></td></tr>
		<% end %>

		<% if !@conference_author_types.blank? %>
		<tr><th><%= t("personal_conference.author_type")%></th><td><%= @conference_author_types %></td></tr>
		<% end %>

		<% if !@writing_conference.location.blank? %>
		<tr><th><%= t("personal_conference.location")%></th><td><%= @writing_conference.location %></td></tr>
		<% end %>

		<% if !@writing_conference.sponsor.blank? %>
		<tr><th><%= t("personal_conference.sponsor")%></th><td><%= @writing_conference.sponsor %></td></tr>
		<% end %>

		<% if !@writing_conference.period_start_date.blank? %>
		<tr><th><%= t("personal_conference.period_start_date")%></th><td><%= @writing_conference.period_start_date %></td></tr>
		<% end %>

		<% if !@writing_conference.period_end_date.blank? %>
		<tr><th><%= t("personal_conference.period_end_date")%></th><td><%= @writing_conference.period_end_date %></td></tr>
		<% end %>

		<% if !@writing_conference.abstract.blank? %>
		<tr><th><%= t("personal_conference.abstract")%></th><td><%= @writing_conference.abstract %></td></tr>
		<% end %>

		<% if !@writing_conference.publication_date.blank? %>
		<tr><th><%= t("personal_conference.publication_date")%></th><td><%= @writing_conference.publication_date %></td></tr>
		<% end %>

		<% if !@writing_conference.url.blank? %>
		<tr><th><%= t("personal_conference.url")%></th><td><%= link_to t(:url), @writing_conference.url, {:target => '_blank', :title => @writing_conference.url} if !@writing_conference.url.blank? %></td></tr>
		<% end %>

		<tr><th><%= t("personal_conference.authors")%></th><td><%= "#{User.from_id(@writing_conference.create_user_id).name rescue ''},#{@personal_conference.authors rescue ''}"%></td></tr>

		<% if @writing_conference.writing_conference_files.size > 0 %>
		<tr><th><%= t("personal_conference.file")%></th>
		<td>
			<div>				
				<div class="showFile">
					<i class="icons-paperclip"></i>
					<% @writing_conference.writing_conference_files.each do | wsfile | %>
					<%= link_to !wsfile.title.blank? ? wsfile.title : 'file', wsfile.file.url, {:target => '_blank', :title => wsfile.title} if wsfile.file.file %>
					<% end %>
				</div>
			</div>
		</td>
		</tr>
		<% end %>
	</tbody>
</table>
