<% # encoding: utf-8 %>

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

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

		<% if !@diploma.school_name.blank? %>
		<tr><th><%= t("personal_diploma.school_name")%></th><td><%= @diploma.school_name %></td></tr>
		<% end %>

		<% if !@diploma.country.blank? %>
		<tr><th><%= t("personal_diploma.country")%></th><td><%= @diploma.country %></td></tr>
		<% end %>

		<% if !@diploma.department.blank? %>
		<tr><th><%= t("personal_diploma.department")%></th><td><%= @diploma.department %></td></tr>
		<% end %>

		<% if !@diploma.degree.blank? %>
		<tr><th><%= t("personal_diploma.degree")%></th><td><%= @diploma.degree %></td></tr>
		<% end %>

		<% if !@diploma.start_date.blank? %>
		<tr><th><%= t("personal_diploma.start_date")%></th><td><%= @diploma.start_date %></td></tr>
		<% end %>

		<% if !@diploma.end_date.blank? %>
		<tr><th><%= t("personal_diploma.end_date")%></th><td><%= @diploma.end_date %></td></tr>
		<% end %>

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

		<tr><th><%= t("personal_diploma.authors")%></th><td><%= User.from_id(@diploma.create_user_id).name rescue '' %></td></tr>

	</tbody>
</table>
