Skip to content

Commit

Permalink
Merge pull request #4157 from ArunTeltia/HTML_Validation/Check_5
Browse files Browse the repository at this point in the history
manually indent preview.html
  • Loading branch information
cdrini authored Nov 26, 2020
2 parents 342286c + c23a15f commit 26503d8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion openlibrary/templates/lib/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2>Formatting Help</h2>
</tr>
<tr>
<td><a href="javascript:;">Links</a></td>
<td>This is <span class="teal">&lt;a href="http://example.com/" title="Title"&gt;</span>an example<span class="teal">&lt;/a&gt;</span> inline link.</u></td>
<td>This is <span class="teal">&lt;a href="http://example.com/" title="Title"&gt;</span>an example<span class="teal">&lt;/a&gt;</span> inline link.</td>
<td>This is <span class="blue">[an example](http://example.com/ "Title")</span> inline link.</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion openlibrary/templates/lib/search_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2 class="shift">Site Search</h2>
<div id="headerLogin">
$if ctx.user:
<div class="hidden">
<form name='logout' action="$homepath()/account/logout" method="post"></form>
<form name="logout" action="$homepath()/account/logout" method="post"></form>
</div>
<div id="headerUser">
<a href="javascript:;" id="userToggle" title="Open Menu"><span class="label">$ctx.user.displayname</span><span class="arrow">&nbsp;&#9660;</span></a>
Expand Down
72 changes: 36 additions & 36 deletions openlibrary/templates/lists/preview.html
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>

0 comments on commit 26503d8

Please sign in to comment.