-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kusum
committed
Sep 4, 2024
1 parent
4e94283
commit 6a52cd9
Showing
2 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
64 changes: 39 additions & 25 deletions
64
library_management_system/library_management_system/doctype/article/templates/article.html
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,32 +1,46 @@ | ||
{% extends "templates/web.html" %} | ||
{% extends "templates/web.html" %} | ||
|
||
{% block page_content %} | ||
|
||
<div class="py-20 row"> | ||
<div class="col-sm-2"> | ||
<img alt="{{ title }}" src="{{ image }}"/> | ||
<div class="col-sm-2"> | ||
<img | ||
alt="{{ title }}" | ||
src="{{ image }}" | ||
srcset="{{ image }} 1x, {{ image_large }} 2x" | ||
sizes="(max-width: 768px) 100vw, 50vw" | ||
loading="lazy" | ||
/> | ||
</div> | ||
<div class="col"> | ||
<h1>{{ title }}</h1> | ||
<p class="lead">By {{ author }}</p> | ||
<div> | ||
{%- if status == 'Available' -%} | ||
<span class="badge badge-success">Available</span> | ||
{%- elif status == 'Issued' -%} | ||
<span class="badge badge-primary">Issued</span> | ||
{%- endif -%} | ||
</div> | ||
<div class="mt-4"> | ||
<div>Publisher: <strong>{{ publisher }}</strong></div> | ||
<div>ISBN: <strong>{{ isbn }}</strong></div> | ||
</div> | ||
<p>{{ description }}</p> | ||
</div> | ||
</div> | ||
<div class="col"> | ||
<h1>{{ title }}</h1> | ||
<p class="lead">By {{ author }}</p> | ||
<div> | ||
|
||
{%- if status == 'Available' -%} | ||
|
||
<span class="badge badge-success">Available</span> | ||
{%- elif status == 'Issued' -%} | ||
|
||
<span class="badge badge-primary">Issued</span> | ||
|
||
{%- endif -%} | ||
|
||
</div> | ||
<div class="mt-4"> | ||
<div>Publisher: <strong>{{ publisher }}</strong></div> | ||
<div>ISBN: <strong>{{ isbn }}</strong></div> | ||
</div> | ||
<p>{{ description }}</p> | ||
</div> | ||
</div> | ||
<!-- Structured Data for SEO --> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "https://schema.org", | ||
"@type": "Book", | ||
"name": "{{ title }}", | ||
"author": "{{ author }}", | ||
"publisher": "{{ publisher }}", | ||
"isbn": "{{ isbn }}", | ||
"description": "{{ description }}", | ||
"image": "{{ image }}" | ||
} | ||
</script> | ||
|
||
{% endblock %} |
28 changes: 21 additions & 7 deletions
28
...ry_management_system/library_management_system/doctype/article/templates/article_row.html
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,9 +1,23 @@ | ||
<div class="py-8 row"> | ||
<div class="col-sm-1"> | ||
<img alt="{{ doc.name }}" src="{{ doc.image }}"/> | ||
</div> | ||
<div class="col"> | ||
<a class="font-size-lg" href="{{ doc.route }}">{{ doc.name }}</a> | ||
<p class="text-muted">By {{ doc.author }}</p> | ||
</div> | ||
<div class="col-sm-1"> | ||
<img | ||
alt="{{ doc.name }}" | ||
src="{{ doc.image }}" | ||
srcset="{{ doc.image }} 1x, {{ doc.image_large }} 2x" | ||
sizes="(max-width: 768px) 100vw, 50vw" | ||
loading="lazy" | ||
class="img-thumbnail" | ||
/> | ||
</div> | ||
<div class="col"> | ||
<a | ||
class="font-size-lg" | ||
href="{{ doc.route }}" | ||
title="Read more about {{ doc.name }}" | ||
> | ||
{{ doc.name }} | ||
</a> | ||
<p class="text-muted">By {{ doc.author }}</p> | ||
</div> | ||
</div> | ||
|