-
Notifications
You must be signed in to change notification settings - Fork 0
/
showcode.html
143 lines (108 loc) · 3.48 KB
/
showcode.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>View Code - AstroCamel.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="AstroCamel was brought to you to provide the
internet users the opportunity to share information through the web. Browse
code snippets and artwork freely." />
<meta name="keywords" content="torrents, free, free torrents, torrent, music,
pictures, movies, apps, applications, astrocamel, www.astrocamel.com,
astrocamel.com, astro, camel, astro camel, astro-camel, astrocamel radio,
radio, online radio" />
<meta name="author" content="George Skouroupathis" />
<meta name="revisit-after" content="20 days" />
<meta name="ROBOTS" content="Index, ALL" />
<meta name="ROBOTS" content="Index, FOLLOW" />
<link rel="icon" type="image/x-icon" href="{{static_url('imgs/favico.ico')}}" />
<style type="text/css">
@import url("{{static_url('styles/style-main.css')}}");
@import url("{{static_url('styles/style-showcode.css')}}");
</style>
</head>
<body>
<div id="header-container">
<div id="header-cntr">
<a href="/"><div id="header">
</div></a>
<div id="menu">
<a href="/">news</a
><a href="/code">code</a
><a href="/gallery">gallery</a
>{% if userName != None %}(<a href="/logout">logout</a
>){% else %}(<a href="/login">login</a>)
{% end %}
</div>
</div>
</div>
<div id="main-container">
<div id="main">
{% if code != None %}
{{code[2]}} - {{code[3]}}
<hr />
<div class="showcode-container">
<pre>
{{codeContent}}
</pre>
</div>
<div class="comments-container">
{% if commentNum[0] == 0 %}
No comments for this code
<br />
{% end %}
{% if sessionUserID == -1 %}
You must <a href="/login" class="txt-lnk">login</a> in order to comment
<br />
{% elif code %}
<form action="/postcomment/{{contentID}}" method="post">
{% raw xsrf_form_html() %}
<textarea name="comment" class="comment-txt"></textarea>
<input type="submit" class="button" value="Leave comment" />
</form>
{% end %}
{% if commentNum[0] != 0 %}
{% for comment in comments %}
<div class="comment">
<u>{{comment[3]}} said:</u>
<br />
{{comment[4]}}
<br />
<font size="3" color="#8B7765"><i>{{comment[5]}}</i></font>
{% if sessionUserID == comment[2] or isAdmin %}
<a href="/deletecomment/{{comment[0]}}"><input type="button" class="button" value="X" /></a>
{% end %}
</div>
{% end %}
{% end %}
</div>
{% else %}
<h4 class="errMsg">No such code</h4>
{% end %}
</div>
</div>
<div id="footer">
<ul class="footer-list">
<li><a href="/">home</a></li>
<li><a href="/code">code</a></li>
<li><a href="/gallery">gallery</a></li>
</ul>
<ul class="footer-list">
<li><a href="/about">about</a></li>
<li><a href="/contact">contact</a></li>
<li><a href="/admin">admin</a></li>
</ul>
<ul class="footer-list">
<li><a href="/controlpanel">control panel</a></li>
<li><a href="/register">register</a></li>
{% if userName != None %}<li><a href="/logout">logout</a></li>
{% else %}<li><a href="/login">login</a></li>{% end %}
</ul>
<div class="fix"></div>
<br />
Copyright © Since 2008 - AstroCamel.com
</div>
<div id="footer-shadow">
</div>
</body>
</html>