blob: c2f692d1ec320635fa5d9d28d370c5b18554962e (
plain)
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
|
{{extend 'default/_base.html'}}
{{if profile != None:}}
{{if not show_favorites:}}
<h1>{{=profile.username+ "'s Submissions:"}}</h1>
{{pass}}
{{if show_favorites:}}
<h1>{{=profile.username+ "'s Favorites:"}}</h1>
{{pass}}
{{pass}}
{{if profile == None:}}
<h1>Submissions</h1>
{{pass}}
<p>Sort by:
{{if profile == None:}}
{{if sort == "newest":}}
{{=sort}}
<a href="index.html?sort=views"> views</a></p>
{{pass}}
{{if sort == "views":}}
<a href="index.html"> newest</a>
{{=sort}}</p>
{{pass}}
{{pass}}
{{if profile != None:}}
{{if sort == "newest":}}
{{=sort}}
<a href={{="index.html?sort=views;profile="+profile.username+";favorites"+str(show_favorites)}}> views</a></p>
{{pass}}
{{if sort == "views":}}
<a href={{="index.html?profile="+profile.username+";favorites"+str(show_favorites)}}> newest</a>
{{=sort}}</p>
{{pass}}
{{pass}}
{{for row in images:}}
<table><tr>
{{for image in row:}}
<td><a href = {{="image.html?image="+str(image.id)}}>
<img src="{{=URL(r=request, f='download', args=image.small_image)}}"
onclick="ajax('ajaxwiki_onclick',['text'],'html')"/>
{{if len(image.title)>30:}}
<br><center>{{=image.title[:27]+"..."}}</center></a></td>
{{pass}}
{{if len(image.title)<=30:}}
<br><center>{{=image.title}}</center></a></td>
{{pass}}
{{pass}}
</tr></table>
{{pass}}
<center>
<ul id="navlist">
{{if page != 1:}}
{{if profile == None:}}
<li><a href = {{="index.html?page="+str(1)+";sort="+sort+";favorites"+str(show_favorites)}}> < </a></li>
{{pass}}
{{if profile != None:}}
<li><a href = {{="index.html?page="+str(1)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}> < </a></li>
{{pass}}
{{pass}}
{{if page > 5:}}<li>...</li>{{pass}}
{{for count in range(pages):}}
{{if count+1 < page+5 and count+1 > page-5:}}
{{if count+1 == page:}}
<li>{{=str(page)}}</li>
{{pass}}
{{if count+1 != page:}}
{{if profile == None:}}
<li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
{{pass}}
{{if profile != None:}}
<li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
{{pass}}
{{pass}}
{{pass}}
{{pass}}
{{if page+5 < pages:}}<li>...</li>{{pass}}
{{if page != pages:}}
{{if profile == None:}}
<li><a href = {{="index.html?page="+str(pages)+";sort="+sort+";favorites"+str(show_favorites)}}> > </a></li>
{{pass}}
{{if profile != None:}}
<li><a href = {{="index.html?page="+str(pages)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}> > </a></li>
{{pass}}
{{pass}}
</ul>
</center>
|