forked from retoor/devplacepy
Outcome: done Changed: devplacepy/templates/base.html:126-132,189-195; devplacepy/templates/_footer_links.html:12-19; devplacepy/templates/admin_settings.html:33-38; devplacepy/routers/admin/settings.py:19; devplacepy/templating.py:197-199,218; devplacepy/static/css/base.css:720-731,785-793,1151-1161,1210-1212; devplacepy/database/CLAUDE.md:224,228 Verified by: import gate clean; py_compile clean; ruff/pyflakes no new findings; TestClient smoke (badges present with href=ios_app_url, target=_blank rel=noopener noreferrer, static_url-versioned src on /, /feed, /leaderboard; absent when setting empty; admin clear via /admin/settings POST verified); make test-fast: 2659 passed, 1 skipped, 10 failed - all environmental (9 missing docker binary, 1 missing libcairo.so.2), none caused by this change; Playwright e2e inapplicable (chromium cannot launch: libglib-2.0.so.0 missing) Findings: Badges render only when ios_app_url site setting is non-empty and are editable/clearable via AdminSettingsForm (CLEARABLE_SETTINGS). Researched URL https://apps.apple.com/app/devplace/id6797215143 (trackId 6797215143, bundleId wok.DevPlaceIOS) confirmed via iTunes Lookup API and seeded in schema.py operational_defaults by sibling commit. Topnav badge hides at <=1024px where the mobile panel badge takes over, keeping the 360px layout overflow-free. Badge SVG is Apple's official white variant vendored at devplacepy/static/app-store-badge.svg with retoor header. Apple badge marketing guidance (40px min Typosaurus-Run: 2910ed1ba2604be09c649141af1baf44 Typosaurus-Node: 2817fd803023406699936e88b76ee632 Typosaurus-Agent: @nadia Refs: #169
18 lines
1.1 KiB
HTML
18 lines
1.1 KiB
HTML
<nav class="footer-links">
|
|
<a href="/docs/index.html"><span class="icon">📚</span> Docs</a>
|
|
<a href="/swagger"><span class="icon">🧪</span> Swagger</a>
|
|
<a href="/openapi.json"><span class="icon">🧩</span> OpenAPI</a>
|
|
<a href="/issues"><span class="icon">🐛</span> Issue Report</a>
|
|
<a href="/workspaces/index"><span class="icon">🖥️</span> Workspaces</a>
|
|
<a href="/docs/terms.html"><span class="icon">📜</span> Terms</a>
|
|
<a href="/docs/privacy.html"><span class="icon">🔒</span> Privacy</a>
|
|
<a href="/docs/community-guidelines.html"><span class="icon">🤝</span> Guidelines</a>
|
|
<a href="/docs/contact.html"><span class="icon">✉️</span> Contact</a>
|
|
{% set _ios_url = ios_app_url() %}
|
|
{% if _ios_url %}
|
|
<a href="{{ _ios_url }}" class="app-store-link" target="_blank" rel="noopener noreferrer" aria-label="Download the DevPlace app on the App Store">
|
|
<img src="{{ static_url('/static/app-store-badge.svg') }}" alt="Download on the App Store" class="app-store-badge" width="120" height="40" loading="lazy">
|
|
</a>
|
|
{% endif %}
|
|
</nav>
|