-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (142 loc) · 7.22 KB
/
index.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
139
140
141
142
143
144
145
<html>
<head>
<title>{{ entry.entry }} - Academia Mongolica</title>
<meta name="google-site-verification" content="FyXhx9sUyi99raveMxfUOMueh16Qze_WIZ9Y27KUzHE" />
<link rel="stylesheet" href="/static/styles.css" />
<script type="text/javascript" src="/static/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/static/jquery.autocomplete-min.js"></script>
<script type="text/javascript" src="/static/json2.js"></script>
<script type="text/javascript" src="/static/scripts.js"></script>
<script type="text/javascript">
function all_entries() {
window.open("/all", "all_entries","height=300,width=530,screenX=100,left=100,screenY=5,top=5,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0");
}
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20609975-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div align="right">
{% if user %}
Сайн уу, <a target="_blank" href="http://twitter.com/{{ user }}">@{{ user }}</a>.
<a href="/twitter_out">Гарах</a>
{% else %}
<a href="/twitter_auth">Twitter хэрэглэн нэвтэр</a>
{% endif %}
</div>
<div>
<form action="" method="post">
<input id="lookup" name="lookup" type="text" value="{{ entry.entry }}" />
<div>
<table width="100%">
<tr>
<td><button type="submit">Хай</button></td>
<td align="right">
<a href="javascript:;" onclick="all_entries();">Бүх үгүүд</a>
</td>
</tr>
</table>
</div>
</form>
</div>
<div id="description">
<a target="_blank" href="http://twitter.com/{{ entry.user }}">@{{ entry.user }}</a>: {{ entry.description|escape }}
</div>
<div id="translations">
<h1>{{ entry.entry|escape }}</h1>
{% if translations %}
{% include "new_translation.html" %}
{% else %}
{% include "new_entry.html" %}
{% endif %}
<div>
{% for translation in translations %}
<div id="{{ translation.key.id }}" class="translation">
<table width="100%">
<tr>
<td width="100">
<span style="font-size: 25px; ">{{ translation.vote }}</span>
<a href="javascript:;" title="Таалагдаж байна"
onclick="vote({{ translation.key.id }}, 1);">
<img align="middle" border="0" src="/static/thumbs-up.gif" width="16" /></a>
<a href="javascript:;" title="Таалагдахгүй байна"
onclick="vote( {{ translation.key.id }}, -1);">
<img align="middle" border="0" src="/static/thumbs-down.gif" width="16" /></a>
</td>
<td>
<div class="translation_text">
{{ translation.translation|escape }}
<div class="date">
<a target="_blank" href="http://twitter.com/{{ translation.user }}">@{{ translation.user }}</a>
{{ translation.when|date:"Y.m.d H:i" }}
</div>
</div>
</td>
</tr>
</table>
</div>
{% endfor %}
</div>
</div>
<div id="sidebar">
<div id="updates" style="padding: 10px;">
<div class="today">
<h3>Өнөөдөр хэлэлцэх үгүүд (2011.01.08)</h3>
<div><strong>Сэдэв:</strong> Вэбээр зугаалах</div>
<div class="selected">
<a href="/134004">upload</a>
<a href="/193002">download</a>
<a href="/26005">share</a>
<a href="/167003">trailer</a>
<a href="/62005">forward</a>
<a href="/39009">e-mail</a>
<a href="/202001">forum</a>
<a href="/145003">spam</a>
</div>
</div>
<div>
<h3>Өчигдөр хэлэлцсэн үгүүд (2011.01.07)</h3>
<div><strong>Сэдэв:</strong> Компьютерийн зохион байгуулалт</div>
<div class="selected">
<a href="/11006">processor</a>
<a href="/52006">instruction</a>
<a href="/3006">memory</a>
<a href="/115004">register</a>
<a href="/158001">machine language</a>
<a href="/125003">assembly language</a>
<a href="/142003">logic gate</a>
<a href="/2006">arithmetic logic unit</a>
</div>
</div>
<h3>Шинээр орсон үгүүд</h3>
<ul>
{% for entry in new_entries %}
<li><a href="/{{ entry.key.id }}">{{ entry.entry|escape }}</a></li>
{% endfor %}
</ul>
<h3>Academia Mongolica блог</h3>
<ul>
{% for post in blog_posts %}
<li><a target="_blank" href="{{ post.link }}">{{ post.title|escape }}</a></li>
{% endfor %}
</ul>
</div>
<div id="comments" style="display: none;">
<div style="padding: 5px;">
<a href="javascript:;" onclick="$('#comments').hide(); $('#updates').fadeIn();">< Хаа</a>
</div>
<iframe id="comments_window"
width="100%" height="400" frameborder="0" scrolling="auto"
marginheight="0" marginwidth="0"></iframe>
</div>
</div>
</body>
</html>