Skip to content

Commit

Permalink
- corrected lower paging navigation to display under the content
Browse files Browse the repository at this point in the history
- allowed the titles to become 3 lines long before getting cut
- decreased batch size from 15 to 12 to avoid log ways to scroll
  • Loading branch information
ibrandt09 committed Dec 22, 2012
1 parent bd1ce5e commit 36aa13e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions on/video/browser/videogallery.py
Expand Up @@ -79,8 +79,8 @@ def countFolderItems(item):

def shorttitle(title):
"""shorten titles for gallery view"""
if len(title) > 20:
tshort = title[:17] + "..."
if len(title) > 50:
tshort = title[:47] + "..."
else: tshort = title
tdict = {'short': tshort, 'long': title}
return tdict
Expand Down
10 changes: 8 additions & 2 deletions on/video/static/videolisting.css
Expand Up @@ -9,15 +9,21 @@
overflow: hidden;
text-align: center;
width: 30%;
height: 42mm;
height: 52mm;
}

#videowrapper .even {
background-color: #d6dae1;
}

#videowrapper .listingBar {
clear: left;
}

#videowrapper h4 {
margin: 10px 5px 8px 5px;
margin: 10px 40px 8px 40px;
text-align: center;
height: 3em;
}

.videothumb img {
Expand Down

0 comments on commit 36aa13e

Please sign in to comment.