-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2767 from digitalfabrik/feature/add_draft_row_to_…
…dashboard Add row for drafted pages to to-do-board
- Loading branch information
Showing
6 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
integreat_cms/cms/templates/dashboard/todo_dashboard_rows/_drafted_pages_row.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "../_todo_dashboard_row.html" %} | ||
{% load i18n %} | ||
{% block todo_dashboard_icon %} | ||
notepad-text-dashed | ||
{% endblock todo_dashboard_icon %} | ||
{% block todo_dashboard_title_link %} | ||
{% url 'pages' region_slug=request.region.slug language_slug=default_language_slug %}?status=DRAFT | ||
{% endblock todo_dashboard_title_link %} | ||
{% block todo_dashboard_title %} | ||
{% translate "Drafted pages" %} | ||
{% endblock todo_dashboard_title %} | ||
{% block todo_dashboard_number %} | ||
{% with total=drafted_pages|length %} | ||
{{ block.super }} | ||
{% endwith %} | ||
{% endblock todo_dashboard_number %} | ||
{% block todo_dashboard_description %} | ||
{% if drafted_pages %} | ||
{% blocktranslate trimmed %} | ||
The page <b>{{ single_drafted_page }}</b> was saved as draft. User can't see your drafted pages. Please don't forget to publish the page once it's ready. | ||
{% endblocktranslate %} | ||
{% else %} | ||
{% blocktranslate trimmed %} | ||
At the moment there is no drafted page. Good job! | ||
{% endblocktranslate %} | ||
{% endif %} | ||
{% endblock todo_dashboard_description %} | ||
{% block todo_dashboard_button_link %} | ||
{% if drafted_pages %} | ||
<a class="btn !rounded-full" | ||
href="{% url 'edit_page' region_slug=request.region.slug language_slug=default_language_slug page_id=single_drafted_page.page_id %}"> | ||
{% translate "Go to page" %} | ||
</a> | ||
{% else %} | ||
<i class="w-8 h-8 text-green-500" icon-name="check-circle-2"></i> | ||
{% endif %} | ||
{% endblock todo_dashboard_button_link %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
en: Add draft row to to-do-board | ||
de: Entwurfszeile zur Aufgabenliste hinzufügen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters