refactor: rename Sources to OPML Sync, remove Manual type

- Remove 'Manual' source type (redundant with Blogs management)
- Rename 'Sources' to 'OPML Sync' for clarity
- Update labels to clarify URL syncs periodically, File is one-time import
- Fix date conversion in sources list controller

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-02-07 17:38:19 +01:00
parent 4a53f74bbc
commit 87ebebfb7a
4 changed files with 44 additions and 44 deletions

View File

@@ -78,9 +78,8 @@
<div class="br-field">
<label for="type">{{ __("blogroll.sources.form.type") }}</label>
<select id="type" name="type" required onchange="toggleTypeFields()">
<option value="opml_url" {% if source.type == 'opml_url' %}selected{% endif %}>OPML URL</option>
<option value="opml_file" {% if source.type == 'opml_file' %}selected{% endif %}>OPML File (paste content)</option>
<option value="manual" {% if source.type == 'manual' %}selected{% endif %}>Manual (add blogs individually)</option>
<option value="opml_url" {% if source.type == 'opml_url' %}selected{% endif %}>OPML URL (auto-sync)</option>
<option value="opml_file" {% if source.type == 'opml_file' %}selected{% endif %}>OPML File (one-time import)</option>
</select>
<span class="br-field-hint">{{ __("blogroll.sources.form.typeHint") }}</span>
</div>
@@ -134,9 +133,6 @@ function toggleTypeFields() {
} else if (type === 'opml_file') {
urlField.style.display = 'none';
opmlContentField.style.display = 'flex';
} else {
urlField.style.display = 'none';
opmlContentField.style.display = 'none';
}
}