-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add popup for information about page access statistics
- Loading branch information
1 parent
d26dd9a
commit 96dc83f
Showing
12 changed files
with
188 additions
and
9 deletions.
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
25 changes: 25 additions & 0 deletions
25
integreat_cms/cms/migrations/0111_add_statistics_tutorial_seen_to_user.py
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,25 @@ | ||
# Generated by Django 4.2.16 on 2024-11-19 16:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
""" | ||
Migration to add a new field statistics_tutorial_seen to User model | ||
""" | ||
|
||
dependencies = [ | ||
("cms", "0110_region_zammad_webhook_token_alter_region_zammad_url"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="user", | ||
name="statistics_tutorial_seen", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Will be set to true once the user dismissed the tutorial for page access statistics", | ||
verbose_name="Page access statistics tutorial seen", | ||
), | ||
), | ||
] |
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
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
38 changes: 38 additions & 0 deletions
38
integreat_cms/cms/templates/tutorials/page_access_statistics.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,38 @@ | ||
{% extends "../generic_tutorial_dialog.html" %} | ||
{% load i18n %} | ||
{% load static %} | ||
{% block content %} | ||
<!-- Pop-Up Header --> | ||
<div class="flex items-center bg-water-500 w-full rounded h-12"> | ||
<h2 class="flex items-center font-semibold leading-normal pl-2 text-black text-xl"> | ||
{% translate "Important information about page access" %} | ||
</h2> | ||
</div> | ||
<!-- Pop-Up Content --> | ||
<div class="px-4"> | ||
<p class="mt-4 text-s max-w-fit text-gray-600"> | ||
{% translate "There is a text here that helps employees to interpret the numbers and statistics appropriately." %} | ||
</p> | ||
<ul class="list-disc my-2 pl-5 text-s text-gray-600"> | ||
<li> | ||
{% translate "Offline access cannot be counted. This means that even a page with few hits in the list can have higher hits that took place offline." %} | ||
</li> | ||
<li> | ||
{% translate "Pages that contain specific information about seasonal or one-time events (e.g. events or election times) may receive higher traffic during certain periods. Outside these phases, traffic may be lower." %} | ||
</li> | ||
<li> | ||
{% translate "Page views should not be viewed in isolation, but always in the context of the overall communication strategy. A page with few hits can still be an important part of user guidance and information." %} | ||
</li> | ||
<li> | ||
{% translate "Some pages may be rarely visited, but are extremely important for specific target groups (e.g. newcomers, people with special needs). For example, information about special advisory services or integration offers could not be used by the general public, but could be indispensable for the target group." %} | ||
</li> | ||
<li> | ||
{% translate "Content that is no longer current or appears outdated can lead to a decrease in traffic. It is therefore important to regularly check whether content has been updated and how this affects the statistics. Low traffic numbers could indicate that the page is no longer perceived as relevant." %} | ||
</li> | ||
</ul> | ||
<p class="mt-4 text-s max-w-fit text-gray-600"> | ||
{% translate "You can find more information about this in " %}<a href="{% url 'public:wiki_redirect' %}" | ||
class="text-blue-500 underline">{% translate "Wiki" %}</a> | ||
</p> | ||
</div> | ||
{% endblock content %} |
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
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 popup with information about page access statistics | ||
de: Füge Popup mit Informationen über die Zugriffsstatistiken hinzu |