Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00
3 changed files with 11 additions and 2 deletions
Showing only changes of commit 47fcc56480 - Show all commits

View File

@ -25,4 +25,5 @@
{% else %} {% else %}
{% trans 'and newer' %} {% trans 'and newer' %}
{% endif %} {% endif %}
<a href="{{ version.extension.get_review_url }}?report_compatibility_issue&version={{ version.version }}#id_message" title="{% trans 'Report compatibility issue' %}"><i class="i-flag"></i></a>
{% endif %} {% endif %}

View File

@ -55,7 +55,7 @@
<section class="ext-detail-info box-outline mb-3"> <section class="ext-detail-info box-outline mb-3">
<div class="dl-row"> <div class="dl-row">
<div class="dl-col"> <div class="dl-col">
<dt>Compatibility</dt> <dt>{% trans 'Compatibility' %}</dt>
<dd>{% include "extensions/components/blender_version.html" with version=version %}</dd> <dd>{% include "extensions/components/blender_version.html" with version=version %}</dd>
</div> </div>
</div> </div>

View File

@ -82,7 +82,15 @@ class ExtensionsApprovalDetailView(DetailView):
ctx['status_change_types'] = STATUS_CHANGE_TYPES ctx['status_change_types'] = STATUS_CHANGE_TYPES
if self.request.user.is_authenticated: if self.request.user.is_authenticated:
form = ctx['comment_form'] = CommentForm() initial = {}
if 'report_compatibility_issue' in self.request.GET:
version = self.request.GET.get('version')
initial['message'] = (
f'Compatibility range for version {version} is outdated\n'
'Platform: ...\n'
'Version of Blender where the add-on is **no longer** working: ?????'
)
form = ctx['comment_form'] = CommentForm(initial=initial)
# anyone can comment # anyone can comment
filtered_activity_types = {ApprovalActivity.ActivityType.COMMENT} filtered_activity_types = {ApprovalActivity.ActivityType.COMMENT}
user = self.request.user user = self.request.user