application.html.erb 5.5 KB
Newer Older
Milan's avatar
Milan committed
1
2
3
4
5
<!DOCTYPE html>
<html lang="de">
<head>
   <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
Milan's avatar
Milan committed
6
    <title><%= yield(:title) %> | The World of Illuna</title>
Milan's avatar
Milan committed
7
8
9
10
11
12
13
14
15
	<meta name="keywords" content="minetest minetestserver illunaminetest minetestilluna minetest-illuna illuna-minetest illuna server texturepack minetestmod mod minecraft">
	<meta name="description" content="An awesome minetestserver, using handselected mods and a very own texturepack. Be part of this amazing minetest community!">
	<meta property="og:description" content="An awesome minetestserver, using handselected mods and a very own texturepack. Be part of this amazing minetest community!"/>
	<meta property="og:locale" content="en_EN"/>
	<meta property="og:site_name" content="illuna-minetest.tk"/>
	<meta property="og:url" content="https://illuna-minetest.tk/"/>
	<meta property="og:image" content=""/>
	<meta property="og:type" content="website"/>
	<meta property="og:title" content="Minetestserver"/>
Milan's avatar
Milan committed
16
17
	<meta property="og:image" itemprop="image" content="//images.illuna-minetest.tk/icons/logo.png" />
	<link rel="shortcut icon" href="//images.illuna-minetest.tk/icons/favicon.ico" type="image/x-icon" />
Milan's avatar
Milan committed
18
    <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
19
    <%= yield(:stylesheet) %>
20
    <script src="//assets.illuna-minetest.tk/js/jquery.min.js"></script>
Milan's avatar
Milan committed
21
22
23
24
25
26
27
28
29
30
31
32
33
</head>
<body link="#c7c7c7" vlink="#c7c7c7" alink="#c7c7c7">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
              <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>  
        </div>
        <div id="navbar" class="navbar-collapse collapse">
34
35
36
37
38
39
40
            <ul class="nav navbar-nav">
                <li class="navbar-brand"><%= link_to image_tag('branding/logos/header_logo.png'), "/" %></li>
                <li><a href="//community.illuna-minetest.tk"><i class="fa fa-users" aria-hidden="true"></i> Community</a></li>
                <li class="<%=is_active('rules')%>"><%= link_to t('nav.rules_html'), "/rules" %></li>
                <li class="<%=is_active('map')%>"><%= link_to t('nav.map_html'), "/map" %></li>
                <li class="<%=is_active('stats')%>"><%= link_to t('nav.stats_html'), "/stats" %></li>
                <li class="<%=is_active('donate')%>"><%= link_to t('nav.donate_html'), "/donate", :id => "donate" %></li>
Milan's avatar
Milan committed
41
42
            </ul>
            <ul class="nav navbar-nav navbar-right">
43
                <li class="<%=is_active('meet')%>"><a href="/meet"><i class="fa fa-commenting" aria-hidden="true"></i> Get in touch!</a></li>
Milan's avatar
Milan committed
44
45
46
47
48
            </ul>
            </div>
        </div>
    </nav>
    <div class="space-top"></div>
Milan's avatar
Milan committed
49
50
51
52
53
54
55
56
57
58
    <div class="container shader" id="content">
        <canvas id="pixie"></canvas>
         <% if notice %>
             <p class="alert alert-success"><%= notice %></p>
         <% end %>
         <% if alert %>
             <p class="alert alert-danger"><%= alert %></p>
         <% end %>
        <%= yield %>
    </div>
Milan's avatar
Milan committed
59
60
61
62
</body>
<footer class="footer">
    <div class="container">
         <div class="pull-left">
63
             <div class="by-tchncs" style="padding-right:1em;">
Milan's avatar
Milan committed
64
65
66
                 by tchncs.de
             </div>
         </div>
67
68
69
70
71
72
73
74
             <% if user_signed_in? %>
                 Eingeloggt als <strong><%= current_user.email %></strong>.
                 <a href="admin">Admin</a> | 
                 <a href="rails_admin">Panel</a> | 
                 <%= link_to "Logout", destroy_user_session_path, method: :delete, :class => 'navbar-link'  %>
             <% else %>
                 <%= link_to "Login", new_user_session_path, :class => 'navbar-link'  %>
             <% end %>
Milan's avatar
Milan committed
75
             <ul class="pull-right" id="footer_nav">
Milan's avatar
Milan committed
76
77
             <li><%= link_to "FAQ", "/faq" %></li>
             <li>|</li>
Milan's avatar
Milan committed
78
79
             <li><%= link_to "Blog", "/blog" %></li>
             <li>|</li>
Milan's avatar
Milan committed
80
             <li><a href="//board.tchncs.de/b/J9NRbJaZi9uDS3pDc/the-wonderful-world-of-illuna"><i class="glyphicon glyphicon-list-alt"></i> Board</a></li>
81
             <li>|</li>
Milan's avatar
Milan committed
82
             <li><a href="//media.illuna-minetest.tk"><i class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></i> Mediagoblin</a></li>
83
84
85
             <%= yield(:license) %>
             <li>|</li>
             <%= yield(:impressum) %>
86
87
88
89
90
91
             <div class="dropdown dropup pull-right">
                 <a id="footer_nav" class="footer_lang dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-globe"></i> toggle language</a>
                 <ul class="dropdown-menu" role="menu">
                     <li><%= link_to "German", change_locale_path(:de), :class => "btn btn-default" %></li>
                     <li><%= link_to "English", change_locale_path(:en), :class => "btn btn-default" %></li>
                 </ul>
Milan's avatar
Milan committed
92
             </div>
93
         </ul>
Milan's avatar
Milan committed
94
95
    </div>
</footer>
Milan's avatar
Milan committed
96
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
Milan's avatar
Milan committed
97
98
<script src="//assets.illuna-minetest.tk/bootstrap/js/bootstrap.min.js"></script>
<script src="//assets.illuna-minetest.tk/js/piwik.js"></script>
Milan's avatar
Milan committed
99
<script src="//assets.tchncs.de/js/cookie-consent.js"></script>
Milan's avatar
Milan committed
100
101
<%= yield(:after) %>
<link href="//assets.illuna-minetest.tk/css/bg.css" rel="stylesheet" type="text/css">