tuxwebror/app/views/layouts/application.html.erb

52 lines
1.9 KiB
Text
Raw Permalink Normal View History

2018-12-21 19:06:39 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title><%= @app_title ? @app_title + " | " : ""%>TuxWeb</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<meta property="og:site_name" content="TuxWeb" />
<meta property="og:locale" content="<%= t('meta.locale') %>" />
<meta name="description" content="<%= t('meta.description') %>" />
<meta name="theme-color" content="#6E83D1" />
<% if @user %>
<%= tag("meta", property: "og:title", content: @app_title + " | TuxWeb") %>
<%= tag("meta", property: "og:url", content: user_url(id: @user.id)) %>
<%= tag("meta", property: "og:description", content: raw(@user.os)) %>
<%= tag("meta", property: "og:image", content: url_exist?(@user.useravatar) ? @user.useravatar : image_url("default.png")) %>
<% else %>
<meta property="og:title" content="TuxWeb" />
<meta property="og:url" content="<%= root_url %>" />
<meta property="og:description" content="<%= t('meta.description') %>" />
<meta property="og:image" content="<%= image_url('tux.png') %>" />
<% end %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<div id="app">
<%= yield %>
<footer class="footer#home">
<span class="bugreport">
<a href="https://git.gnous.eu/gnous/TuxWebROR/issues" class="grey-link" target="_blank">
<i class="fas fa-bug"></i>
</a>
</span>
<span class="copyright">
&copy; 2016-<%= Time.current.year %>
<a class="grey-link" href="https://outout.xyz">@Outout</a> - <%= raw t('footer.not_affiliated') %> <a class="grey-link" href="https://discordapp.com/branding">Discord</a>
</span>
<%= lang_switcher %>
</footer>
</div>
</body>
</html>