<% content_for :head do %> <%= stylesheet_link_tag "profile", media: "all", "data-turbolinks-track": "reload" %> <% end %>

<%= @user.full_name %>

<%=image_tag(@user.picture[0], id: "profile_image", alt: "")%> <%= @user.i18n_tagline %>
<% @user.user_social_links.each do |link| %> <%= link_to( image_tag(link.social_link.logo, class: "project_image", alt: link.social_link.i18n_link_title, title: link.social_link.i18n_link_title), link.generate_link, target: "_blank", title: link.social_link.i18n_link_title ) %> <% end %>

<%= t("profile.description") %>

<%= @user.i18n_bio %>

<%= link_to( t("profile.resume"), @resume_main.file, target: "_blank", title: t("profile.resume"), class: "a_button" ) %> <% if @resume_languages.size > 0 %>
<%= t("profile.resume_lang") %>
    <% @resume_languages.each do |resume| %>
  • <%= link_to( t("profile.resume_" + resume.language), resume.file, target: "_blank", title: t("profile.resume_" + resume.language) ) %>
  • <% end%>
<% end%>

TODO

<% prev_nature = "" @user.technologies.each do |technology| if technology.nature != prev_nature %>

<% end %> <%= image_tag(technology.logo, class: "technology_logo", alt: "") %> <%= technology.name %> <% prev_nature = technology.nature end %>

<%= t("profile.experience") %>

<% prev_company = "" prev_city = "" same_company = false same_company_class = "last_role" @user.work_experiences.each do |experience| if experience.company == prev_company && experience.city == prev_city same_company = true same_company_class = ""; else same_company = false same_company_class = "last_role" end %> <% prev_company = experience.company prev_city = experience.city end %>
<% if !same_company %>
<%= experience.company %>
<% if experience.companyLogo.attached? %> <% end %> <% end %>
<% if !same_company %> <%= image_tag("control/point.svg", alt: "") %> <% end %> <% experience_date = ""; if (experience.end == nil) experience_date = t( "time.date_month_since", year: experience.start.year, month: t("time." + Date::MONTHNAMES[experience.start.month].downcase) ).humanize else experience_date = t( "time.date_month", year: experience.start.year, month: t("time." + Date::MONTHNAMES[experience.start.month].downcase) ).humanize + " - " + t( "time.date_month", year: experience.end.year, month: t("time." + Date::MONTHNAMES[experience.end.month].downcase) ).humanize end %>

<%= experience.i18n_role %>

<%= experience_date %>

<%= experience.i18n_description.html_safe %>