52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
<% # encoding: utf-8 %>
|
|
|
|
<div class="writing_detail">
|
|
<table>
|
|
<caption> <%= t("module_name.personal_research") %> </caption>
|
|
<tbody>
|
|
<% if !@research.year.blank? %>
|
|
<tr><th><%= t("personal_research.year")%></th><td><%= @research.year %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.language.blank? %>
|
|
<tr><th><%= t("personal_research.language")%></th><td><%= @research.language %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.research_title.blank? %>
|
|
<tr><th><%= t("personal_research.research_title")%></th><td><%= @research.research_title %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.extracted_chapters.blank? %>
|
|
<tr><th><%= t("personal_research.extracted_chapters")%></th><td><%= @research.extracted_chapters %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.publish_date.blank? %>
|
|
<tr><th><%= t("personal_research.publication_date")%></th><td><%= @research.publish_date.strftime("%Y.%m") %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.url.blank? %>
|
|
<tr><th><%= t("personal_research.url")%></th><td><%= link_to t(:url), @research.url, {:target => '_blank', :title => @research.url} if !@research.url.blank? %></td></tr>
|
|
<% end %>
|
|
|
|
<% if !@research.authors.blank? %>
|
|
<tr><th><%= t("personal_research.authors")%></th><td><%= "#{@research.authors rescue ''}"%></td></tr>
|
|
<% end %>
|
|
|
|
<% if @research.research_files.size > 0 %>
|
|
<tr><th><%= t("personal_research.file")%></th>
|
|
<td>
|
|
<div>
|
|
<div class="showFile">
|
|
<i class="icons-paperclip"></i>
|
|
<% @research.research_files.each do | wjfile | %>
|
|
<%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|