<% # encoding: utf-8 %>

<table>
	<caption> <%= t("module_name.personal_honor") %> </caption>
	<tbody>
		<% if !@honor.honor_category.blank? %>
		<tr><th><%= t("personal_honor.honor_category")%></th><td><%= @honor.honor_category.title if @honor.honor_category %></td></tr>
		<% end %>

		<% if !@honor.year.blank? %>
		<tr><th><%= t("personal_honor.year")%></th><td><%= @honor.year %></td></tr>
		<% end %>

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

		<% if !@honor.award_name.blank? %>
		<tr><th><%= t("personal_honor.award_name")%></th><td><%= @honor.award_name %></td></tr>
		<% end %>

		<% if !@honor.awarding_unit.blank? %>
		<tr><th><%= t("personal_honor.awarding_unit")%></th><td><%= @honor.awarding_unit %></td></tr>
		<% end %>

		<% if !@honor.url.blank? %>
		<tr><th><%= t("personal_honor.url")%></th><td><%= link_to t(:url), @honor.url, {:target => '_blank', :title => @honor.url} if !@honor.url.blank? %></td></tr>
		<% end %>
		
		<tr><th><%= t("personal_honor.award_winner")%></th><td><%= User.from_id(@honor.create_user_id).name rescue '' %></td></tr>
	</tbody>
</table>
