Edit blog home UI

This commit is contained in:
cuom1999 2022-05-30 02:37:48 -05:00
parent 8c846bf414
commit 22470c2f58
3 changed files with 23 additions and 17 deletions

View file

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: lqdoj2\n" "Project-Id-Version: lqdoj2\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-30 14:09+0700\n" "POT-Creation-Date: 2022-05-30 14:27+0700\n"
"PO-Revision-Date: 2021-07-20 03:44\n" "PO-Revision-Date: 2021-07-20 03:44\n"
"Last-Translator: Icyene\n" "Last-Translator: Icyene\n"
"Language-Team: Vietnamese\n" "Language-Team: Vietnamese\n"
@ -4277,8 +4277,8 @@ msgid "Controls"
msgstr "Quản lý" msgstr "Quản lý"
#: templates/organization/org-right-sidebar.html:24 #: templates/organization/org-right-sidebar.html:24
msgid "Edit organization" msgid "Edit group"
msgstr "Chỉnh sửa" msgstr "Chỉnh sửa nhóm"
#: templates/organization/org-right-sidebar.html:31 #: templates/organization/org-right-sidebar.html:31
msgid "View requests" msgid "View requests"
@ -5571,6 +5571,9 @@ msgstr "Thông tin"
msgid "Check all" msgid "Check all"
msgstr "Chọn tất cả" msgstr "Chọn tất cả"
#~ msgid "Edit organization"
#~ msgstr "Chỉnh sửa"
#~ msgid "You may not be part of more than {count} public organizations." #~ msgid "You may not be part of more than {count} public organizations."
#~ msgstr "Bạn không thể tham gia nhiều hơn {count} tổ chức công khai." #~ msgstr "Bạn không thể tham gia nhiều hơn {count} tổ chức công khai."

View file

@ -7,8 +7,22 @@
<span class="post-authors">{{ link_users(authors) }}</span> <span class="post-authors">{{ link_users(authors) }}</span>
{%- endif -%} {%- endif -%}
{% endwith %} {% endwith %}
&#8226; {{ relative_time(post.publish_on, abs=_('on {time}'), rel=_('{time}')) -}} &#8226;
{%- if post.sticky %} &#8226; <i title="Sticky" class="fa fa-star fa-fw"></i>{% endif -%} {{ relative_time(post.publish_on, abs=_('on {time}'), rel=_('{time}')) -}}
{%- if post.sticky %} &#8226;
<i title="Sticky" class="fa fa-star fa-fw"></i>{% endif -%}
{% if post.is_organization_private and show_organization_private_icon %}
&#8226;
<span>
{% for org in post.organizations.all() %}
<span class="organization-tag" style="display: inherit;">
<a href="{{ org.get_absolute_url() }}">
<i class="fa fa-lock"></i> {{ org.name }}
</a>
</span>
{% endfor %}
</span>
{% endif %}
</span> </span>
<span style="float: right"> <span style="float: right">
<a href="{{ url('blog_post', post.id, post.slug) }}#comments" class="blog-comment-count-link"> <a href="{{ url('blog_post', post.id, post.slug) }}#comments" class="blog-comment-count-link">
@ -22,17 +36,6 @@
<h2 class="title"> <h2 class="title">
<a href="{{ url('blog_post', post.id, post.slug) }}">{{ post.title }}</a> <a href="{{ url('blog_post', post.id, post.slug) }}">{{ post.title }}</a>
</h2> </h2>
{% if post.is_organization_private and show_organization_private_icon %}
<div class="organization-tags">
{% for org in post.organizations.all() %}
<span class="organization-tag">
<a href="{{ org.get_absolute_url() }}">
<i class="fa fa-lock"></i> {{ org.name }}
</a>
</span>
{% endfor %}
</div>
{% endif %}
<div class="summary content-description blog-description"> <div class="summary content-description blog-description">
{% cache 86400 'post_summary' post.id %} {% cache 86400 'post_summary' post.id %}
{{ post.summary|default(post.content, true)|markdown('blog', 'svg', lazy_load=True)|reference|str|safe }} {{ post.summary|default(post.content, true)|markdown('blog', 'svg', lazy_load=True)|reference|str|safe }}

View file

@ -21,7 +21,7 @@
{% if can_edit %} {% if can_edit %}
<li> <li>
<div> <div>
<a href="{{ url('edit_organization', organization.id, organization.slug) }}">{{ _('Edit organization') }}</a> <a href="{{ url('edit_organization', organization.id, organization.slug) }}">{{ _('Edit group') }}</a>
</div> </div>
</li> </li>
{% endif %} {% endif %}