Reviewed-on: SGD-Nord/konova#143
This commit is contained in:
		
						commit
						157655a085
					
				@ -90,9 +90,15 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <th scope="row">{% trans 'Last modified' %}</th>
 | 
			
		||||
                        <td class="align-middle">
 | 
			
		||||
                            {{obj.modified.timestamp|default_if_none:""|naturalday}}
 | 
			
		||||
                            {% if obj.modified %}
 | 
			
		||||
                                {{obj.modified.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.modified.user.username}}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                                {{obj.created.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.created.user.username}}
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
 | 
			
		||||
@ -73,9 +73,15 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <th scope="row">{% trans 'Last modified' %}</th>
 | 
			
		||||
                        <td class="align-middle">
 | 
			
		||||
                            {{obj.modified.timestamp|default_if_none:""|naturalday}}
 | 
			
		||||
                            {% if obj.modified %}
 | 
			
		||||
                                {{obj.modified.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.modified.user.username}}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                                {{obj.created.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.created.user.username}}
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
 | 
			
		||||
@ -60,14 +60,13 @@
 | 
			
		||||
                        <th scope="row">{% trans 'Last modified' %}</th>
 | 
			
		||||
                        <td class="align-middle">
 | 
			
		||||
                            {% if obj.modified %}
 | 
			
		||||
                                {{obj.modified.timestamp|default_if_none:""|naturalday}}
 | 
			
		||||
                                {{obj.modified.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.modified.user.username}}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                                {{obj.created.timestamp|default_if_none:""|naturalday}}
 | 
			
		||||
                                {{obj.created.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.created.user.username}}
 | 
			
		||||
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
{% extends 'base.html' %}
 | 
			
		||||
{% load i18n l10n static fontawesome_5 humanize %}
 | 
			
		||||
{% load i18n l10n static fontawesome_5 %}
 | 
			
		||||
 | 
			
		||||
{% block head %}
 | 
			
		||||
    {% comment %}
 | 
			
		||||
@ -106,9 +106,15 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <th scope="row">{% trans 'Last modified' %}</th>
 | 
			
		||||
                        <td class="align-middle">
 | 
			
		||||
                            {{obj.created.timestamp|default_if_none:""|naturalday}}
 | 
			
		||||
                            {% if obj.modified %}
 | 
			
		||||
                                {{obj.modified.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.modified.user.username}}
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                                {{obj.created.timestamp|default_if_none:""}}
 | 
			
		||||
                                <br>
 | 
			
		||||
                                {{obj.created.user.username}}
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
 | 
			
		||||
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
 | 
			
		||||
"""
 | 
			
		||||
import os
 | 
			
		||||
from django.utils.translation import gettext_lazy as _
 | 
			
		||||
from django.conf.locale.de import formats as de_formats
 | 
			
		||||
 | 
			
		||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
 | 
			
		||||
BASE_DIR = os.path.dirname(
 | 
			
		||||
@ -162,9 +163,15 @@ LANGUAGES = [
 | 
			
		||||
 | 
			
		||||
USE_THOUSAND_SEPARATOR = True
 | 
			
		||||
 | 
			
		||||
# Regular python relevant date/datetime formatting
 | 
			
		||||
DEFAULT_DATE_TIME_FORMAT = '%d.%m.%Y %H:%M:%S'
 | 
			
		||||
DEFAULT_DATE_FORMAT = '%d.%m.%Y'
 | 
			
		||||
 | 
			
		||||
# Template relevant date/datetime formatting
 | 
			
		||||
# See the Note on here: https://docs.djangoproject.com/en/3.2/ref/templates/builtins/#date
 | 
			
		||||
de_formats.DATETIME_FORMAT = "d.m.Y, H:i"
 | 
			
		||||
de_formats.DATE_FORMAT = "d.m.Y"
 | 
			
		||||
 | 
			
		||||
TIME_ZONE = 'Europe/Berlin'
 | 
			
		||||
 | 
			
		||||
USE_I18N = True
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,7 @@ import uuid
 | 
			
		||||
from django.db import models
 | 
			
		||||
from django.utils.translation import gettext_lazy as _
 | 
			
		||||
 | 
			
		||||
from konova.sub_settings.django_settings import DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT
 | 
			
		||||
from konova.sub_settings.django_settings import DEFAULT_DATE_TIME_FORMAT
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class UserAction(models.TextChoices):
 | 
			
		||||
 | 
			
		||||
@ -54,14 +54,6 @@
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </a>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="row mb-2">
 | 
			
		||||
                    <a href="{% url 'user:api-token' %}" title="{% trans 'See or edit your API token' %}">
 | 
			
		||||
                        <button class="btn btn-default">
 | 
			
		||||
                            {% fa5_icon 'code' %}
 | 
			
		||||
                            <span>{% trans 'API' %}</span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </a>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="row mb-2">
 | 
			
		||||
                    <a href="{% url 'user:team-index' %}" title="{% trans 'Manage teams' %}">
 | 
			
		||||
                        <button class="btn btn-default">
 | 
			
		||||
@ -70,6 +62,14 @@
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </a>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="row mb-2">
 | 
			
		||||
                    <a href="{% url 'user:api-token' %}" title="{% trans 'See or edit your API token' %}">
 | 
			
		||||
                        <button class="btn btn-default">
 | 
			
		||||
                            {% fa5_icon 'code' %}
 | 
			
		||||
                            <span>{% trans 'API' %}</span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </a>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user