/
base.html
138 lines (126 loc) · 4.46 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="sk">
<head>
<title>{% block head_title %}LinuxOS.sk{% endblock %}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if style_options.small %}
{% include "template_overrides/alpha/css.compress.small.html" %}
{% else %}
{% include "template_overrides/alpha/css.compress.html" %}
{% endif %}
{% include "css.extra.html" %}
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="canonical" href="{{ get_base_uri() }}{{ request.path }}" />
<meta property="og:site_name" content="LinuxOS.sk" />
{{ render_all_feeds(template="feeds/header_feeds.html") }}
{% include "includes/common_headers.html" %}
{% include "partials/microformats_header.html" %}
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block extrastyle %}{% endblock %}{% block extraheaders %}{% endblock %}
</head>
<body class="{% block bodyclass %}{% endblock %}{% if request.GET._visible_menu %} visible-menu{% endif %}">
{{ hijack_notification() }}
{% include 'includes/analytics.html' %}
{% block messages %}
<div id="global_messages">
{{ render_messages(messages) }}
</div>
{% endblock %}
<a id="menu_shadow" href="{{ current_link_remove('_visible_menu') }}" class="toggle-menu-action"></a>
<header>
<div id="header">
<div id="logo"><a href="{{ url("home") }}">LinuxOS.sk</a></div>
<a id="main_menu_toggle" href="{{ current_link_add(_visible_menu=1) }}" class="toggle-menu-action">Menu</a>
<div id="menu_panel">
<div class="actions">
<a href="{{ url("template-list") }}" class="templates">Šablóny</a>
<a href="{{ url('haystack_search') }}" class="search-link" title="Hľadať">Hľadať</a>
</div>
<div id="user_panel" class="touchhover-emul{% if user.is_authenticated %} authenticated{% endif %}">
<a id="main_menu_back" href="{{ current_link_remove('_visible_menu') }}" class="toggle-menu-action">Skryť menu</a>
{% include "partials/user_panel.html" %}
</div>
<ul id="main_menu" class="tabs">
{% block site_menu %}{% include "partials/site_menu.html" %}{% endblock %}
</ul>
<div id="search_panel" class="search">
<form method="get" action="{{ url('haystack_search') }}" class="search btn">
<div class="search-input">
<input type="text" name="q"/>
<button class="btn-search" title="Hľadať">Hľadať</button>
</div>
</form>
</div>
</div>
</div>
</header>
<div id="main_content">
<div class="content-module">
{% block content %}
{% endblock %}
{% block discussion %}
{% endblock %}
</div>
</div>
<div id="sidebar_1">
{% block left %}
<div class="module news">
<h2 class="block-title">Správy</h2>
{{ news_frontpage() }}
<div class="module-links bottom">
<a href="{{ url('news:list') }}" class="next">Ďalšie</a>
</div>
<div class="submit-row">
<div class="positive">
<div class="btn"><span class="wrap"><a class="text" href="{{ url("news:create") }}">Pridať správu</a></span></div>
</div>
</div>
</div>
{% endblock %}
</div>
<div id="sidebar_2">
{% block right %}
<div class="module-group">
<div id="module_block_linux" class="module linux">
<h2 class="block-title">O Linuxe</h2>
<ul class="menu">
{% include "partials/menu_linux.html" %}
</ul>
</div>
<div id="module_block_portal" class="module portal">
<h2 class="block-title">Portál</h2>
<ul class="menu">
{% include "partials/menu_portal.html" %}
</ul>
</div>
<div id="module_block_recommended" class="module odporucam">
<h2 class="block-title">Odporúčame</h2>
<div class="module-row">
{% include "static/block-odporucame.html" %}
</div>
</div>
<div id="module_block_support" class="module podporte">
<h2 class="block-title">Podporte nás</h2>
<div class="module-row">
{% include "static/block-podporte.html" %}
</div>
</div>
</div>
<div id="module_block_polls" class="module polls">
<h2 class="block-title">Anketa</h2>
<div class="module-row">
{{ render_messages(messages, 'polls') }}
{{ polls_frontpage() }}
</div>
</div>
{% endblock %}
</div>
<!--[if lt IE 7]>
<script src="{{ static("js/fixiepng.js") }}"></script>
<![endif]-->
{% include "template_overrides/alpha/js.compress.html" %}
</body>
</html>