<%
  if @member

    @researchs = Research.where(is_hidden: false, :create_user_id => @member.id).desc(:publish_date)

    @research_intro = !PersonalResearchIntro.where(:user_id => @member.id).blank? ? PersonalResearchIntro.where(:user_id => @member.id).first : PersonalResearchIntro.new
%>

  <% if @research_intro.brief_intro and !@research_intro.blank? %> 

    <div class="info">
        <%= @research_intro.text.html_safe rescue '' %>
      </div>

  <% end %> 

  <% if ( !@research_intro.blank? and @research_intro.complete_list ) or @research_intro.blank? %> 

    <% if !@researchs.blank? %> 

      <table class="table">
        <thead>
          <tr>
      			<th class="grid2"><%= t('personal_research.publication_date') %></th>
      			<th class="grid10"><%= t('personal_research.research_title') %></th>
      		</tr>
        </thead>
        <tbody>
      		
      	<% @researchs.each do |research| %>	
      			
          <tr>
      			<td><%= research.publish_date.strftime("%Y.%m") %></td>
      			<td>
      			<%= link_to research.research_title, panel_personal_research_front_end_research_path(research) %>
      			</td>
      		</tr>		
      		
      	<% end %>	

        </tbody>
      </table>

    <% end %> 

  <% end %> 

<% end %> 