fix: patch to update name of member
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends "templates/base.html" %}
|
||||
{% from "www/macros/profile.html" import profile %}
|
||||
{% block title %}{{ _("Community") }}{% endblock %}
|
||||
{% block head_include %}
|
||||
<meta name="description" content="{{ 'Community' }}" />
|
||||
@@ -86,19 +87,6 @@
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% macro profile(photo, full_name, abbr, icon) %}
|
||||
{% if photo %}
|
||||
<img class="avatar rounded-circle img-fluid mr-5{% if icon == 'large' %} avatar-xl {% else %} avatar-large {% endif %}"
|
||||
src="{{ photo }}" alt="{{ full_name }}">
|
||||
{% else %}
|
||||
<div class="col-sm-2">
|
||||
<div class="standard-image {% if icon == 'large' %} dashboard__abbr {% else %} dashboard__abbrSmall {% endif %}">
|
||||
{{ abbr }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<div class="dashboard__parent">
|
||||
@@ -159,9 +147,9 @@
|
||||
<div class="tab-pane fade py-4" role="tabpanel" id="sketches">
|
||||
<div class='container'>
|
||||
<a href="/sketches/new">Create a New Sketch</a>
|
||||
{% if sketches %}
|
||||
{% for sketch in sketches %}
|
||||
<div class="row row-cols-1 row-cols-xl-5 row-cols-lg-4 row-cols-md-3 row-cols-sm-2 pt-5">
|
||||
<div class="row row-cols-1 row-cols-xl-5 row-cols-lg-4 row-cols-md-3 row-cols-sm-2">
|
||||
{% if sketches %}
|
||||
{% for sketch in sketches %}
|
||||
<div class="col mb-4">
|
||||
<div class="card sketch-card" style="width: 200px;">
|
||||
<div class="card-img-top">
|
||||
@@ -179,11 +167,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p class="text-center">You have not created any sketches.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p class="text-center">You have not created any sketches.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade py-4" role="tabpanel" id="courses">
|
||||
|
||||
12
community/www/macros/profile.html
Normal file
12
community/www/macros/profile.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% macro profile(photo, full_name, abbr, icon) %}
|
||||
{% if photo %}
|
||||
<img class="avatar rounded-circle img-fluid mr-5{% if icon == 'large' %} avatar-xl {% else %} avatar-large {% endif %}"
|
||||
src="{{ photo }}" alt="{{ full_name }}">
|
||||
{% else %}
|
||||
<div class="col-sm-2">
|
||||
<div class="standard-image {% if icon == 'large' %} dashboard__abbr {% else %} dashboard__abbrSmall {% endif %}">
|
||||
{{ abbr }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
@@ -1,25 +1,11 @@
|
||||
{% extends "templates/web.html" %}
|
||||
{% from "www/macros/profile.html" import profile %}
|
||||
{% block page_content %}
|
||||
<div class="py-20 row">
|
||||
{% if user.photo %}
|
||||
<div class="col-sm-2 border border-dark">
|
||||
<img src="{{ user.photo }}" alt="{{ user.full_name }}">
|
||||
<section>
|
||||
<div>
|
||||
{{ profile(member.photo, member.full_name, abbr, "large")}}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="col-sm-2">
|
||||
<div class="standard-image" style="font-size: 30px;">{{ user.abbr }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col">
|
||||
<h1>{{ user.full_name }}</h1>
|
||||
{% if user.short_intro %}
|
||||
<p class="lead"> {{ user.short_intro }} </p>
|
||||
{% endif %}
|
||||
{% if user.bio %}
|
||||
<p class="markdown-style"> {{ frappe.utils.md_to_html(user.bio) }} </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
<!-- this is a sample default web page template -->
|
||||
<!-- this is a sample default web page template -->
|
||||
Reference in New Issue
Block a user