<% # encoding: utf-8 %>

<table>
<caption> <%= t("writing_journal") %> </caption>
<tbody>
<tr><th><%= t("writing_journal.year")%></th><td><%= @writing_journal.year %></td></tr>
<tr><th><%= t("writing_journal.language")%></th><td><%= @writing_journal.language %></td></tr>
<tr><th><%= t("writing_journal.paper_title")%></th><td><%= @writing_journal.paper_title %></td></tr>
<tr><th><%= t("writing_journal.journal_title")%></th><td><%= @writing_journal.journal_title %></td></tr>
<tr><th><%= t("writing_journal.journal_paper_type")%></th><td><%= @writing_journal.journal_paper_type.title if @writing_journal.journal_paper_type %></td></tr>
<tr><th><%= t("writing_journal.journal_level_types")%></th><td><%= @journal_level_types %></td></tr>
<tr><th><%= t("writing_journal.journal_author_types")%></th><td><%= @journal_author_types %></td></tr>
<tr><th><%= t("writing_journal.isbn")%></th><td><%= @writing_journal.isbn %></td></tr>
<tr><th><%= t("writing_journal.vol_no")%></th><td><%= @writing_journal.vol_no %></td></tr>
<tr><th><%= t("writing_journal.issue_no")%></th><td><%= @writing_journal.issue_no %></td></tr>
<tr><th><%= t("writing_journal.form_to")%></th><td><%= "#{@writing_journal.form_to_start} ~ #{@writing_journal.form_to_end}" %></td></tr>
<tr><th><%= t("writing_journal.total_pages")%></th><td><%= @writing_journal.total_pages %></td></tr>
<tr><th><%= t("writing_journal.abstract")%></th><td><%= @writing_journal.abstract %></td></tr>
<tr><th><%= t("writing_journal.publication_date")%></th><td><%= @writing_journal.publication_date %></td></tr>
<tr><th><%= t("writing_journal.url")%></th><td><%= link_to t(:url), @writing_journal.url, {:target => '_blank', :title => @writing_journal.journal_title} if !@writing_journal.url.blank? %></td></tr>
<tr><th><%= t("writing_journal.note")%></th><td><%= @writing_journal.note %></td></tr>
<tr><th><%= t("writing_journal.authors")%></th><td><%= "#{User.from_id(@writing_journal.create_user_id).name rescue ''},#{@writing_journal.authors rescue ''}"%></td></tr>
<tr><th><%= t("writing_journal.files")%></th>
<td>
<% if @writing_journal.writing_journal_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @writing_journal.writing_journal_files.each do | wjfile | %>
					<%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
					<% end %>
			</div>
		</div>
	<% end %>
</td>
</tr>
</tbody>
</table>
