index.html.erb 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <% content_for :head do %>
  2. <%= stylesheet_link_tag 'profile', media: 'all', 'data-turbolinks-track': 'reload' %>
  3. <% end %>
  4. <section id='info'>
  5. <h3>
  6. <%= @user.full_name %>
  7. </h3>
  8. <article>
  9. <%=image_tag(@user.picture[0], id: "profile_image")%>
  10. <div id='social'>
  11. <% @user.user_social_links.each do |link| %>
  12. <%= link_to(
  13. image_tag(link.social_link.logo, class: "project_image", alt: link.social_link.i18n_link_title, title: link.social_link.i18n_link_title),
  14. link.generate_link,
  15. target: "_blank",
  16. title: link.social_link.i18n_link_title
  17. ) %>
  18. <% end %>
  19. </div>
  20. </article>
  21. </section>
  22. <section id='about'>
  23. <h3>
  24. <%= t("profile.description") %>
  25. </h3>
  26. <p>
  27. <%= @user.i18n_bio %>
  28. </p>
  29. <div id='resume_download'>
  30. <%= link_to(
  31. t("profile.resume"),
  32. @resume_main.file,
  33. target: "_blank",
  34. title: t("profile.resume"),
  35. class: "a_button"
  36. ) %>
  37. <% if @resume_languages.size > 0 %>
  38. <details>
  39. <summary class='pointer'>
  40. <%= t("profile.resume_lang") %>
  41. </summary>
  42. <ul>
  43. <% @resume_languages.each do |resume| %>
  44. <li>
  45. <%= link_to(
  46. t("profile.resume_" + resume.language),
  47. resume.file,
  48. target: "_blank",
  49. title: t("profile.resume_" + resume.language)
  50. ) %>
  51. </li>
  52. <% end%>
  53. </ul>
  54. </details>
  55. <% end%>
  56. </div>
  57. </section>