Merge branch 'main' of https://github.com/frappe/community into main

This commit is contained in:
pateljannat
2021-03-23 15:29:18 +05:30
6 changed files with 164 additions and 8 deletions

View File

@@ -51,7 +51,7 @@
{% endmacro %}
{% macro render_section_text(s) %}
{{ s.contents | markdown }}
{{ frappe.utils.md_to_html(s.contents) }}
{% endmacro %}
{%- block script %}

View File

@@ -19,14 +19,19 @@
<div class="row row-cols-1 row-cols-xl-5 row-cols-lg-4 row-cols-md-3 row-cols-sm-2 ">
{% for sketch in sketches %}
<div class="col mb-4">
<div class="card" style="width: 200px;">
<div class="card sketch-card" style="width: 200px;">
<div class="card-img-top">
<a href="/sketches/sketch?sketch={{sketch.name}}">
{{ sketch.to_svg() }}
</a>
</div>
<div class="card-footer">
By {{sketch.get_owner_name()}}
<div class="sketch-title">
<a href="sketches/sketch?sketch={{sketch.name}}">{{sketch.title}}</a>
</div>
<div class="sketch-author">
by {{sketch.get_owner_name()}}
</div>
</div>
</div>
</div>