Shorten "Jestem zainteresowany" to "Zainteresowany" for mobile fit
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-25 15:53:36 +01:00
parent 4fb2bd04ed
commit 5229433ea8
2 changed files with 4 additions and 4 deletions

View File

@ -551,7 +551,7 @@
<p class="text-muted" style="margin: 0;">{{ event.attendee_count }} osób zainteresowanych z Izby</p>
</div>
<button id="rsvp-btn" class="btn {% if user_attending %}btn-secondary attending{% else %}btn-primary{% endif %}" onclick="toggleRSVP()">
{% if user_attending %}Nie interesuje mnie{% else %}Jestem zainteresowany{% endif %}
{% if user_attending %}Nie interesuje mnie{% else %}Zainteresowany{% endif %}
</button>
{% else %}
<div>
@ -661,7 +661,7 @@ async function toggleRSVP() {
btn.classList.add('btn-secondary', 'attending');
showToast(isExt ? 'Oznaczono jako zainteresowany!' : 'Zapisano na wydarzenie!', 'success');
} else {
btn.textContent = isExt ? 'Jestem zainteresowany' : 'Wezmę udział';
btn.textContent = isExt ? 'Zainteresowany' : 'Wezmę udział';
btn.classList.remove('btn-secondary', 'attending');
btn.classList.add('btn-primary');
showToast(isExt ? 'Usunięto zainteresowanie' : 'Wypisano z wydarzenia', 'info');

View File

@ -585,7 +585,7 @@
{% if event.can_user_attend(current_user) %}
{% set is_attending = event.attendees|selectattr('user_id','equalto',current_user.id)|list %}
<button class="btn btn-sm rsvp-list-btn {{ 'rsvp-attending' if is_attending else 'rsvp-not-attending' }}" data-event-id="{{ event.id }}" data-attending="{{ 'true' if is_attending else 'false' }}" data-external="true" onclick="toggleListRSVP(this)" {{ 'onmouseenter=this.textContent="Nie interesuje" onmouseleave=this.textContent="Zainteresowany "'|safe if is_attending }}>
{{ 'Zainteresowany ✓' if is_attending else 'Jestem zainteresowany' }}
{{ 'Zainteresowany ✓' if is_attending else 'Zainteresowany' }}
</button>
{% endif %}
{% else %}
@ -655,7 +655,7 @@ async function toggleListRSVP(btn) {
var data = await resp.json();
if (data.success) {
var addedText = isExt ? 'Zainteresowany ✓' : 'Zapisano ✓';
var removedText = isExt ? 'Jestem zainteresowany' : 'Zapisz się';
var removedText = isExt ? 'Zainteresowany' : 'Zapisz się';
var hoverText = isExt ? 'Nie interesuje' : 'Wypisz się';
var countLabel = isExt ? ' zainteresowanych' : ' uczestników';