<% # encoding: utf-8 %>

<table>
<caption> <%= t("project") %> </caption>
<tbody>
<tr><th><%= t("project.year")%></th><td><%= @project.year %></td></tr>
<tr><th><%= t("project.language")%></th><td><%= @project.language %></td></tr>
<tr><th><%= t("project.project_title")%></th><td><%= @project.project_title %></td></tr>
<tr><th><%= t("project.job_title")%></th><td><%= @project.job_title %></td></tr>
<tr><th><%= t("project.category")%></th><td><%= @project.project_category.title if @project.project_category %></td></tr>
<tr><th><%= t("project.participator")%></th><td><%= @project.participator %></td></tr>
<tr><th><%= t("project.unit")%></th><td><%= @project.unit %></td></tr>
<tr><th><%= t("project.abstract")%></th><td><%= @project.abstract %></td></tr>
<tr><th><%= t("project.period_start_date")%></th><td><%= @project.period_start_date %></td></tr>
<tr><th><%= t("project.period_end_date")%></th><td><%= @project.period_end_date %></td></tr>
<tr><th><%= t("project.url")%></th><td><%= link_to t(:url), @project.url, {:target => '_blank', :title => @project.title} if !@project.url.blank? %></td></tr>
<tr><th><%= t("project.note")%></th><td><%= @project.note %></td></tr>
<tr><th><%= t("project.authors")%></th><td><%= "#{User.from_id(@project.create_user_id).name rescue ''},#{@project.authors rescue ''}"%></td></tr>
<tr><th><%= t("project.files")%></th>
<td>
<% if @project.project_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @project.project_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>
