diff options
Diffstat (limited to 'views/default/index.html')
-rw-r--r-- | views/default/index.html | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/views/default/index.html b/views/default/index.html index da1f19c..455f564 100644 --- a/views/default/index.html +++ b/views/default/index.html @@ -1,6 +1,11 @@ {{extend 'default/_base.html'}} {{if profile != None:}} - <h1>{{=profile+ "'s Submissions"}}</h1> + {{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> @@ -19,10 +24,10 @@ {{if profile != None:}} {{if sort == "newest":}} {{=sort}} - <a href={{="index.html?sort=views;profile="+profile}}> views</a></p> + <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}}> newest</a> + <a href={{="index.html?profile="+profile.username+";favorites"+str(show_favorites)}}> newest</a> {{=sort}}</p> {{pass}} {{pass}} @@ -30,9 +35,14 @@ <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)}}" + <img src="{{=URL(r=request, f='download', args=image.small_image)}}" onclick="ajax('ajaxwiki_onclick',['text'],'html')"/> - <br><center>{{=image.title}}</center></a></td> + {{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}} @@ -44,10 +54,10 @@ {{pass}} {{if count+1 != page:}} {{if profile == None:}} - <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort}}>{{ = str(count+1)}}</a></li> + <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>{{ = str(count+1)}}</a></li> + <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}} |