index.html.erb 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <h5>
  10. <%=image_tag(@user.picture[0], id: "profile_image", alt: "")%>
  11. <span>
  12. <%= @user.i18n_tagline %>
  13. </span>
  14. </h5>
  15. <div id='social'>
  16. <% @user.user_social_links.each do |link| %>
  17. <%= link_to(
  18. image_tag(link.social_link.logo, class: "project_image", alt: link.social_link.i18n_link_title, title: link.social_link.i18n_link_title),
  19. link.generate_link,
  20. target: "_blank",
  21. title: link.social_link.i18n_link_title
  22. ) %>
  23. <% end %>
  24. </div>
  25. </article>
  26. </section>
  27. <section id='about'>
  28. <h3>
  29. <%= t("profile.description") %>
  30. </h3>
  31. <article>
  32. <p>
  33. <%= @user.i18n_bio %>
  34. </p>
  35. <div id='resume_download'>
  36. <%= link_to(
  37. t("profile.resume"),
  38. @resume_main.file,
  39. target: "_blank",
  40. title: t("profile.resume"),
  41. class: "a_button"
  42. ) %>
  43. <% if @resume_languages.size > 0 %>
  44. <details>
  45. <summary class='pointer'>
  46. <%= t("profile.resume_lang") %>
  47. </summary>
  48. <ul>
  49. <% @resume_languages.each do |resume| %>
  50. <li>
  51. <%= link_to(
  52. t("profile.resume_" + resume.language),
  53. resume.file,
  54. target: "_blank",
  55. title: t("profile.resume_" + resume.language)
  56. ) %>
  57. </li>
  58. <% end%>
  59. </ul>
  60. </details>
  61. <% end%>
  62. </div>
  63. </article>
  64. </section>