| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <% content_for :head do %>
- <%= stylesheet_link_tag "profile", media: "all", "data-turbolinks-track": "reload" %>
- <% end %>
- <section id='info'>
- <h3>
- <%= @user.full_name %>
- </h3>
- <article>
- <h5>
- <%=image_tag(@user.picture[0], id: "profile_image", alt: "")%>
- <span>
- <%= @user.i18n_tagline %>
- </span>
- </h5>
- <div id='social'>
- <% @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 %>
- </div>
- </article>
- </section>
- <section id='about'>
- <h3>
- <%= t("profile.description") %>
- </h3>
- <article>
- <p>
- <%= @user.i18n_bio %>
- </p>
- <div id='resume_download'>
- <%= link_to(
- t("profile.resume"),
- @resume_main.file,
- target: "_blank",
- title: t("profile.resume"),
- class: "a_button"
- ) %>
- <% if @resume_languages.size > 0 %>
- <details>
- <summary class='pointer'>
- <%= t("profile.resume_lang") %>
- </summary>
- <ul>
- <% @resume_languages.each do |resume| %>
- <li>
- <%= link_to(
- t("profile.resume_" + resume.language),
- resume.file,
- target: "_blank",
- title: t("profile.resume_" + resume.language)
- ) %>
- </li>
- <% end%>
- </ul>
- </details>
- <% end%>
- </div>
- </article>
- </section>
- <section id='skills'>
- <h3>
- TODO
- </h3>
- <article>
- <%
- prev_nature = ""
- @user.technologies.each do |technology|
- if technology.nature != prev_nature
- %>
- </p>
- <p>
- <%
- end
- %>
- <span class='technology technology_<%=technology.nature%>'>
- <%= image_tag(technology.logo, class: "technology_logo", alt: "") %>
- <span class='technology_name'>
- <%= technology.name %>
- </span>
- </span>
- <%
- prev_nature = technology.nature
- end
- %>
- </p>
- </article>
- </section>
- <section id='experience'>
- <h3>
- <%= t("profile.experience") %>
- </h3>
- <article>
- <table>
- <%
- 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
- %>
- <tr>
- <td class='company'>
- <% if !same_company %>
- <h5 class='company'>
-
- <%= experience.company %>
- </h5>
- <% if experience.companyLogo.attached? %>
- <span class='company_logo'>
- <%=
- image_tag(
- experience.companyLogo,
- alt: experience.company
- )
- %>
- </span>
- <% end %>
- <% end %>
- </td>
- <td class='timeline <%= same_company_class %>'>
- <% if !same_company %>
- <%= image_tag("control/point.svg", alt: "") %>
- <% end %>
- </td>
- <td class='details <%= same_company_class %>'>
- <%
- 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
- %>
- <h4 class='role'>
- <%= experience.i18n_role %>
- </h4>
- <span class='date'>
- <%= experience_date %>
- </span>
- <p class='description'>
- <%= experience.i18n_description.html_safe %>
- </p>
- </td>
- </tr>
- <%
- prev_company = experience.company
- prev_city = experience.city
- end
- %>
- </table>
- </article>
- </section>
|