orbit-basic/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/_profile.html.erb

50 lines
1.4 KiB
Plaintext

<%
if @member
@experiences = Experience.where(is_hidden: false, :create_user_id => @member.id).desc(:start_date)
@experience_intro = !PersonalExperienceIntro.where(:user_id => @member.id).blank? ? PersonalExperienceIntro.where(:user_id => @member.id).first : PersonalExperienceIntro.new
%>
<% if @experience_intro.brief_intro and !@experience_intro.blank? %>
<div class="info">
<%= @experience_intro.text.html_safe rescue '' %>
</div>
<% end %>
<% if ( !@experience_intro.blank? and @experience_intro.complete_list ) or @experience_intro.blank? %>
<% if !@experiences.blank? %>
<table class="table">
<thead>
<tr>
<th class="grid3"><%= t('personal_experience.organizationt_title') %></th>
<th class="grid2"><%= t('personal_experience.job_title') %></th>
<th class="grid3"><%= t('date_') %></th>
</tr>
</thead>
<tbody>
<% @experiences.each do |experience| %>
<tr>
<td>
<%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
</td>
<td><%= experience.job_title %></td>
<td><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td>
</tr>
<% end %>
</tbody>
</table>
<% end %>
<% end %>
<% end %>