Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/views/default/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/index.html')
-rw-r--r--views/default/index.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/views/default/index.html b/views/default/index.html
new file mode 100644
index 0000000..da1f19c
--- /dev/null
+++ b/views/default/index.html
@@ -0,0 +1,55 @@
+{{extend 'default/_base.html'}}
+{{if profile != None:}}
+ <h1>{{=profile+ "'s Submissions"}}</h1>
+ {{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}}> views</a></p>
+ {{pass}}
+ {{if sort == "views":}}
+ <a href={{="index.html?profile="+profile}}> 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 width="250px" src="{{=URL(r=request, f='download', args=image.newimage)}}"
+ onclick="ajax('ajaxwiki_onclick',['text'],'html')"/>
+ <br><center>{{=image.title}}</center></a></td>
+ {{pass}}
+ </tr></table>
+ {{pass}}
+<center>
+<ul id="navlist">
+{{for count in range(pages):}}
+ {{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}}>{{ = str(count+1)}}</a></li>
+ {{pass}}
+ {{if profile != None:}}
+ <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort}}+";profile="+profile>{{ = str(count+1)}}</a></li>
+ {{pass}}
+ {{pass}}
+ {{pass}}
+</ul>
+</center>