username truncation functionality added
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<button type="submit" name="theme" value="{{ theme.name }}" class="btn btn-confirm">OK</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<span class="btn btn-disabled">🔒</span>
|
||||
<span class="btn btn-disabled">×</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "core/base.html" %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
{% block title_text %}Your to-do list{% endblock title_text %}
|
||||
{% block header_text %}Your to-do list{% endblock header_text %}
|
||||
@@ -12,7 +13,7 @@
|
||||
{% block content %}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
<small>List created by: <span id="id_list_owner">{{ list.owner.email }}</span></small>
|
||||
<small>List created by: <span id="id_list_owner">{{ list.owner|display_name }}</span></small>
|
||||
<table id="id_list_table" class="table">
|
||||
{% for item in list.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
@@ -44,7 +45,7 @@
|
||||
</form>
|
||||
<small>List shared with:
|
||||
{% for user in list.shared_with.all %}
|
||||
<span class="list-recipient">{{ user.email }}</span>
|
||||
<span class="list-recipient">{{ user|display_name }}</span>
|
||||
{% endfor %}
|
||||
</small>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{% extends "core/base.html" %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
{% block header_text %}{{ user.email }}'s lists{% endblock header_text %}
|
||||
{% block header_text %}{{ user|display_name }}'s lists{% endblock header_text %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ owner.email }}'s lists</h3>
|
||||
<h3>{{ owner|display_name }}'s lists</h3>
|
||||
<ul>
|
||||
{% for list in owner.lists.all %}
|
||||
<li><a href="{{ list.get_absolute_url }}">{{ list.name }}</a></li>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% load compress %}
|
||||
{% load static %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -24,7 +25,7 @@
|
||||
</a>
|
||||
{% if user.email %}
|
||||
<a class="navbar-link" href="{% url 'my_lists' user.id %}">My lists</a>
|
||||
<span class="navbar-text">Logged in as {{ user.email }}</span>
|
||||
<span class="navbar-text">Logged in as {{ user|display_name }}</span>
|
||||
<form method="POST" action="{% url "logout" %}">
|
||||
{% csrf_token %}
|
||||
<button id="id_logout" class="btn btn-outline-secondary" type="submit">
|
||||
|
||||
Reference in New Issue
Block a user