| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <footer>
- <hr id='footer_separator'/>
- <table id='footer_table'>
- <tr>
- <td id='footer_left'>
- <span id='footer_follow' class='desktop'>
- <%= t("footer.follow") %>
- </span>
- <% @user.user_social_links.each do |link| %>
- <%=
- link_to(
- image_tag(
- link.social_link.logo,
- class: "footer_social_icon",
- alt: link.social_link.i18n_link_title),
- link.generate_link,
- target: "_blank",
- title: link.social_link.i18n_link_title
- )
- %>
- <% end %>
- </td>
- <td id='footer_center'>
- <%= t("footer.copy", name: @user.full_name, year: Date.today.year) %>
- </td>
- <td id='footer_right'>
- <%= link_to(
- t("footer.help"),
- help_path,
- id: "footer_help",
- title: t("footer.help")
- ) %>
- <br/><br/>
- <%
- path = request.fullpath
- if path.to_s[0..4] =~ /[a-z]{2}/ then
- path = path[3..] + "/"
- end
- %>
- <% I18n.available_locales.each do |locale| %>
- <%=
- link_to(
- image_tag(
- "lang/#{locale.to_s}.svg",
- alt: t("footer.lang_#{locale.to_s}")
- ),
- request.protocol +
- request.host_with_port +
- "/" +
- locale.to_s +
- path,
- class: "lang",
- title: t("footer.lang_#{locale.to_s}")
- )
- %>
- <% end %>
- </td>
- </tr>
- </table>
- </footer>
|