<%
  if @member

    @writing_conferences = WritingConference.where(is_hidden: false, :create_user_id => @member.id).desc(:year,:period_start_date)

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

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

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

  <% end %> 

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

    <% if !@writing_conferences.blank? %> 

      <table class="table">
        <thead>
          <tr>
      			<th class="grid1"><%= t('personal_conference.year') %></th>
            <th class="grid8"><%= t('module_name.personal_conference') %></th>
      			<th class="grid3"><%= t('personal_conference.authors') %></th>
      		</tr>
        </thead>
        <tbody>
      		
      	<% @writing_conferences.each do |writing_conference| %>	
      			
          <tr>
            <td><%= writing_conference.year %></td>
      			<td>
      			<%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %>
      			</td>
            <td><%= User.find(writing_conference.create_user_id).name rescue '' %></td>
      		</tr>		
      		
      	<% end %>	

        </tbody>
      </table>

    <% end %> 

  <% end %> 

<% end %> 