forked from madcowfred/evething
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_base.html
More file actions
112 lines (106 loc) · 4.74 KB
/
Copy pathsimple_base.html
File metadata and controls
112 lines (106 loc) · 4.74 KB
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
<!DOCTYPE html>
<html lang="en">
{% set authed = user.is_authenticated() %}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="{{ STATIC_URL }}favicon.ico">
{% if authed %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/theme-{{ user.get_profile().theme }}.min.css">
{% else %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/theme-default.min.css">
{% endif %}{# authed #}
<title>EVEthing: {% block title %}{% endblock %}</title>
</head>
<body>
<div id="wrap">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="{{ url('thing.views.home') }}">EVEthing</a>
<div class="nav-collapse collapse">
<ul class="nav" id="nav-list">
{% if authed %}
{% set profile = user.get_profile() %}
{% if profile.show_assets %}<li><a href="{{ url('thing.views.assets_summary') }}">Assets</a></li>{% endif %}
{% if profile.show_blueprints %}<li><a href="{{ url('thing.views.blueprints') }}">Blueprints</a></li>{% endif %}
{% if profile.show_contracts %}
<li>
<a href="{{ url('thing.views.contracts') }}">
Contracts
{% if nav_contracts %}<span class="text-success">[{{ nav_contracts }}]</span>{% endif %}
</a>
</li>
{% endif %}{# profile.show_contracts #}
{% if profile.show_industry %}
<li>
<a href="{{ url('thing.views.industry') }}">
Industry
{% if nav_industryjobs %}<span class="text-success">[{{ nav_industryjobs }}]</span>{% endif %}
</a>
</li>
{% endif %}{# profile.show_industry #}
{% if profile.show_orders %}<li><a href="{{ url('thing.views.orders') }}">Orders</a></li>{% endif %}
{% if profile.show_trade %}<li><a href="{{ url('thing.views.trade') }}">Trade</a></li>{% endif %}
{% if profile.show_transactions %}<li><a href="{{ url('thing.views.transactions') }}">Transactions</a></li>{% endif %}
{% if profile.show_wallet_journal %}<li><a href="{{ url('thing.views.wallet_journal') }}">Wallet Journal</a></li>{% endif %}
{% endif %}{# user.is_authenticated #}
</ul>
<ul class="nav pull-right">
{% if authed %}
<li class="navbar-text visible-desktop server-status">
{% if server_open %}
<i class="icon-thumbs-up" rel="tooltip" data-placement="bottom" title="Server is online - {{ online_players|commas }} players"></i>
{% else %}
<i class="icon-thumbs-down" rel="tooltip" data-placement="bottom" title="Server is offline"></i>
{% endif %}
</li>
<li class="navbar-text visible-desktop"{% if not user.get_profile().show_clock %} style="display: none"{% endif %}>
<span id="utc-time"></span> EVE
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
<span class="sensitive user-name">{{ user.username }}</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="{{ url('thing.views.account') }}">Account Management</a></li>
<li><a href="{{ url('thing.views.events') }}">Event log</a></li>
<li class="divider"></li>
{% if user.is_staff %}
<li><a href="{{ url('admin:index') }}">Site Administration</a></li>
<li class="divider"></li>
{% endif %}
<li><a href="{{ url('auth_logout') }}">Logout</a>
</ul>
</li>
{% else %}
<li>
<a href="{{ url('auth_login') }}">Login</a>
</li>
{% endif %}{# user.is_staff #}
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid" id="container">
{% block content %}{% endblock %}
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container-fluid">
<p class="pull-left">
<a href="https://github.com/madcowfred/evething/tree/develop#readme">EVEthing</a> © Freddie (EVE: Tazuki Falorn) 2012-2013
</p>
</div>
</div>
{% block extra_js %}{% endblock %}
</body>
</html>