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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
<!DOCTYPE html>
@{
string style = "";
if (ViewBag.Banner != null)
{
style = "background: url(\"" + ViewBag.Banner + "\") center center fixed;background-size:cover;";
}
}
<html style="@style">
<head>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/dark-hive/jquery-ui.css" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@Scripts.Render("~/Scripts/simplemde.js")
@Scripts.Render("~/bundles/modernizr")
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
@if(ViewBag.PageDescription != null)
{
<meta name="description" content="@ViewBag.PageDescription" />
}
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="@Url.Action("jquery.datetimepicker.js", "Scripts")"></script>
<link rel="stylesheet" href="~/Content/datetimepicker.css" />
@RenderSection("scripts", required: false)
@if (!string.IsNullOrWhiteSpace(ViewBag.Title))
{
<title>@ViewBag.Title • ShiftOS</title>
<meta property="og:title" content="@ViewBag.Title - ShiftOS" />
}
else
{
<title>ShiftOS</title>
<meta property="og:title" contest="ShiftOS" />
}
@if (!string.IsNullOrWhiteSpace(ViewBag.Keywords))
{
<meta name="keywords" content="@Model.Keywords" />
}
@if (!string.IsNullOrWhiteSpace(ViewBag.Description))
{
<meta name="description" content="@ViewBag.Description" />
<meta property="og:description" content="@ViewBag.Description" />
}
@if (!string.IsNullOrWhiteSpace(ViewBag.Image))
{
<meta property="og:image" content="@ViewBag.Image" />
}
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/bootstrap-theme.css")
@Styles.Render("~/Content/Site.css")
<link rel="stylesheet" href="https://cdn.rawgit.com/xcatliu/simplemde-theme-dark/master/dist/simplemde-theme-dark.min.css" />
</head>
<body>
<div class="navbar navbar-default">
<div> <!--Let's just add some padding there so the page doesn't look fucked.-->
<div class="navbar-header hidden-xs hidden-sm">
<a href="@Url.Action("Index", "Home")" class="navbar-brand"><img src="https://cdn.discordapp.com/emojis/276479128574623745.png" style="width:auto;height:auto; max-width:24px;" /></a>
</div>
<div class="hidden-md hidden-lg hidden-print">
<ul class="nav nav-pills">
<li><a href="@Url.Action("Index", "Home")"><img src="https://cdn.discordapp.com/emojis/276479128574623745.png" style="width:auto;height:auto; max-width:24px;" /></a></li>
<li><a href="@Url.Action("Index", "Download")"><span class="glyphicon glyphicon-arrow-down"></span></a></li>
<li><a href="@Url.Action("Index", "Skins")"><span class="glyphicon glyphicon-picture"></span></a></li>
<li><a href="@Url.Action("Index", "Forum")"><span class="glyphicon glyphicon-comment"></span></a></li>
<li><a href="@Url.Action("Index", "Bugs")"><span class="glyphicon glyphicon-warning-sign"></span></a></li>
<li><a href="@Url.Action("Index", "Wiki")"><span class="glyphicon glyphicon-book"></span></a></li>
@Html.Partial("_LoginPartial")
</ul>
</div>
<div class="navbar-collapse collapse hidden-xs hidden-sm">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("Download", "Index", "Download")</li>
<li>@Html.ActionLink("Customize", "Index", "Skins")</li>
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Community <span class="caret"></span></a>
<ul class="dropdown-menu">
<li>@Html.ActionLink("Discord", "Discord", "Home")</li>
<li>@Html.ActionLink("Contests", "Index", "Contests")</li>
<li>@Html.ActionLink("Forum", "Index", "Forum")</li>
<li>@Html.ActionLink("Wiki", "Index", "Wiki")</li>
<li>@Html.ActionLink("Developer blog", "Index", "Blog")</li>
<li>@Html.ActionLink("Bug tracker", "Index", "Bugs")</li>
<li><a href="http://github.com/shiftos-game/ShiftOS">GitHub</a></li>
</ul>
</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
@Scripts.Render("~/Scripts/highlight.js")
@if (ViewBag.Modals != null)
{
foreach (var id in ViewBag.Modals)
{
<div id="[email protected]" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Are you sure?</h4>
</div>
<div class="modal-body">
<p>Deleting this category will delete all child categories and topics associated with it. This <strong>cannot</strong> be undone.</p>
</div>
<div class="modal-footer">
<a href="@id.Value" class="btn btn-primary">Yes</a>
<button type="button" class="btn btn-default" data-dismiss="modal">Nope.</button>
</div>
</div>
</div>
</div>
}
}
<div class="container clearfix body-content">
<div class="panel panel-warning">
<div class="panel-body">
<p><span class="glyphicon glyphicon-warning-sign"></span> <strong>Do things seem broken?</strong> We are currently working on streamlining the permission system and its backend. Please be patient!</p>
</div>
</div>
@if (!ACL.UserEmailConfirmed(User.Identity.Name))
{
<div class="panel panel-warning">
<div class="panel-body">
<span class="glyphicon glyphicon-info-sign"></span> <strong>Email address not confirmed!</strong> Hi! It appears that your email has not been confirmed. Please check your email. @Html.ActionLink("Resend confirmation link", "ResendConf", "Account")
</div>
</div>
}
@RenderBody()
<hr />
</div>
<footer class="navbar navbar-default content container">
<img src="https://cdn.discordapp.com/attachments/217054074326089728/300415125536374795/shiftos-full.png" style="width:auto; height:auto; max-width:250px;" />
<p>© @DateTime.Now.Year Michael VanOverbeek and the ShiftOS Dev Team</p>
<p>Website styling courtesy of <a href="http://vicr123.github.io/">Victor Tran</a>.</p>
<div class="row">
<div class="col-xs-4">
<p><strong>Community</strong></p>
<ul>
<li>@Html.ActionLink("Forums", "Index", "Forum")</li>
<li>@Html.ActionLink("Discord", "Discord", "Home")</li>
<li>@Html.ActionLink("Wiki", "Index", "Wiki")</li>
<li>@Html.ActionLink("Skin Repository", "Index", "Skins")</li>
</ul>
</div>
<div class="col-xs-4">
<p><strong>Discover</strong></p>
<ul>
<li><a href="http://youtube.com/ShiftOS">YouTube</a></li>
<li><a href="http://github.com/shiftos-game">ShiftOS on GitHub</a></li>
<li><a href="http://github.com/ShiftOS-CSharp/TheShiftOSMemorial">The Memorial</a></li>
</ul>
</div>
<div class="col-xs-4">
<p><strong>Help & About</strong></p>
<ul>
<li>@Html.ActionLink("Terms of service", "TOS", "Legal")</li>
<li>@Html.ActionLink("Privacy Policy", "Privacy", "Legal")</li>
<li>@Html.ActionLink("About Project: Unite", "AboutUnite", "Home")</li>
<li>@Html.ActionLink("About ShiftOS", "About", "Home")</li>
<li>@Html.ActionLink("Get in touch", "Contact", "Home")</li>
</ul>
</div>
</div>
<p><strong>We'd like to formally thank Philip Adams.</strong> Without him, we would not exist. Phil has contributed years of work and help to ShiftOS and is the original developer of the game. He has written code that is still used to this day in modern ShiftOS, and much of the ideas and mechanics in the game are from his mind.</p>
<p>Check Phil out on YouTube: <a href="http://youtube.com/OSFirstTimer">OSFirstTimer</a> | <a href="https://www.youtube.com/user/AstralPhaser">AstralPhaser</a> | <a href="https://www.youtube.com/channel/UC2wLfbZrHQOxP2e5zkxYRjA">YouTube Millionaire</a></p>
@if ((bool)User.Identity?.IsAdmin())
{
<p>@Html.ActionLink("Administrator Control Panel", "Index", "Admin")</p>}
</footer>
<script type="text/javascript">
var mde = new SimpleMDE({forceSync: true});
mde.options.forceSync();
</script>
</body>
</html>
|