Merge pull request #841 from tcely/patch-6

Apply the suggested "Sync Now" changes
This commit is contained in:
meeb 2025-03-21 02:05:22 +11:00 committed by GitHub
commit 12e021f368
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -29,4 +29,9 @@ html {
.help-text > i { .help-text > i {
padding-right: 6px; padding-right: 6px;
} }
.issue-641 {
display: block !important;
overflow-wrap: anywhere;
}

View File

@ -24,7 +24,7 @@
<div class="col s12"> <div class="col s12">
<div class="collection"> <div class="collection">
{% for source in sources %} {% for source in sources %}
<span class="collection-item flex-collection-container"> <span class="collection-item flex-collection-container issue-641">
<a href="{% url 'sync:source' pk=source.pk %}" class="flex-grow"> <a href="{% url 'sync:source' pk=source.pk %}" class="flex-grow">
{{ source.icon|safe }} <strong>{{ source.name }}</strong> ({{ source.get_source_type_display }} &quot;{{ source.key }}&quot;)<br> {{ source.icon|safe }} <strong>{{ source.name }}</strong> ({{ source.get_source_type_display }} &quot;{{ source.key }}&quot;)<br>
{{ source.format_summary }}<br> {{ source.format_summary }}<br>
@ -34,7 +34,7 @@
<strong>{{ source.media_count }}</strong> media items, <strong>{{ source.downloaded_count }}</strong> downloaded{% if source.delete_old_media and source.days_to_keep > 0 %}, keeping {{ source.days_to_keep }} days of media{% endif %} <strong>{{ source.media_count }}</strong> media items, <strong>{{ source.downloaded_count }}</strong> downloaded{% if source.delete_old_media and source.days_to_keep > 0 %}, keeping {{ source.days_to_keep }} days of media{% endif %}
{% endif %} {% endif %}
</a> </a>
<a href="{% url 'sync:source-sync-now' pk=source.pk %}" class="collection-item"><i class="fas fa-arrow-rotate-right"></i></a> <a href="{% url 'sync:source-sync-now' pk=source.pk %}" class="btn">Sync Now</a>
</span> </span>
{% empty %} {% empty %}
<span class="collection-item no-items"><i class="fas fa-info-circle"></i> You haven't added any sources.</span> <span class="collection-item no-items"><i class="fas fa-info-circle"></i> You haven't added any sources.</span>