-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4157 from ArunTeltia/HTML_Validation/Check_5
manually indent preview.html
- Loading branch information
Showing
3 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
$def with (list) | ||
<span class="imageLg"> | ||
$ cover = list.get_cover() or list.get_default_cover() | ||
$ cover_url = cover and cover.url("M") or "/images/icons/avatar_book-sm.png" | ||
<a href="$list.key"><img src="$cover_url" alt="Cover of: $list.name" title="Cover of: $list"/></a> | ||
</span> | ||
<span class="details"> | ||
$ owner = list.get_owner() | ||
$ is_owner = ctx.user and ctx.user.key == owner.key | ||
<span class="resultTitle $cond(is_owner, 'my-list')"> | ||
$if is_owner: | ||
<h3><a href="$list.key">$list.name</a></h3> | ||
<span class="list-owner small grey"> by <a href="$owner.key">$_('You')</a></span> | ||
$else: | ||
<h3><a href="$list.key">$list.name</a> </h3> | ||
<span class="list-owner small grey"> by <a href="$owner.key">$owner.displayname</a></span> | ||
|
||
<div class="editions smaller"> | ||
$ungettext("1 seed", "%(count)d seeds", len(list.seeds), count=len(list.seeds)) | ||
$ungettext("1 edition", "%(count)s editions", list.edition_count, count=commify(list.edition_count)) | ||
|
||
<span class="lightgreen"> | ||
$_('Last modified %(date)s', date=datestr(list.last_modified)) | ||
</span> | ||
</div> | ||
<span class="imageLg"> | ||
$ cover = list.get_cover() or list.get_default_cover() | ||
$ cover_url = cover and cover.url("M") or "/images/icons/avatar_book-sm.png" | ||
<a href="$list.key"><img src="$cover_url" alt="Cover of: $list.name" title="Cover of: $list"/></a> | ||
</span> | ||
<span class="details"> | ||
$ owner = list.get_owner() | ||
$ is_owner = ctx.user and ctx.user.key == owner.key | ||
<span class="resultTitle $cond(is_owner, 'my-list')"> | ||
$if is_owner: | ||
<h3><a href="$list.key">$list.name</a></h3> | ||
<span class="list-owner small grey"> by <a href="$owner.key">$_('You')</a></span> | ||
$else: | ||
<h3><a href="$list.key">$list.name</a> </h3> | ||
<span class="list-owner small grey"> by <a href="$owner.key">$owner.displayname</a></span> | ||
|
||
<span class="description no-img"> | ||
$if list.description: | ||
$:format(list.description) | ||
</span> | ||
<div class="editions smaller"> | ||
$ungettext("1 seed", "%(count)d seeds", len(list.seeds), count=len(list.seeds)) | ||
$ungettext("1 edition", "%(count)s editions", list.edition_count, count=commify(list.edition_count)) | ||
|
||
<div class="subjects"> | ||
$ subjects = list.get_top_subjects(limit=5) | ||
$if subjects: | ||
<!-- TODO: I18N Needs to be improved for LTR languages --> | ||
$_('Themes:') | ||
$for s in subjects[:5]: | ||
<a href="$s.url">$s.title</a>$cond(loop.last, "", ",") | ||
</div> | ||
<span class="lightgreen"> | ||
$_('Last modified %(date)s', date=datestr(list.last_modified)) | ||
</span> | ||
</div> | ||
|
||
<span class="description no-img"> | ||
$if list.description: | ||
$:format(list.description) | ||
</span> | ||
|
||
<div class="subjects"> | ||
$ subjects = list.get_top_subjects(limit=5) | ||
$if subjects: | ||
<!-- TODO: I18N Needs to be improved for LTR languages --> | ||
$_('Themes:') | ||
$for s in subjects[:5]: | ||
<a href="$s.url">$s.title</a>$cond(loop.last, "", ",") | ||
</div> | ||
</span> | ||
</span> |