mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Rename Matmat to Trombi
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
{% extends 'core/base.jinja' %}
|
||||
|
||||
{% block title %}
|
||||
{% trans club=object.club %}{{ club }}'s Matmatronch{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{% trans club=object.club %}{{ club }}'s Matmatronch{% endtrans %}</h2>
|
||||
<a href="{{ url('matmat:edit', matmat_id=object.id) }}">Edit</a>
|
||||
<p>Subscription deadline: {{ object.subscription_deadline|date(DATETIME_FORMAT) }}</p>
|
||||
<p>Comment deadline: {{ object.comments_deadline|date(DATETIME_FORMAT) }}</p>
|
||||
<a href="#">Export</a>
|
||||
<p>People:</p>
|
||||
<ul>
|
||||
{% for u in object.users.all() %}
|
||||
<li>{{ u.user.get_display_name() }} - <a href="{{ url('matmat:delete_user', matmat_id=object.id, user_id=u.id) }}">Delete</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
@ -1,34 +0,0 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans user_name=user.get_display_name() %}{{ user_name }}'s Matmat{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{% trans%}Matmatronch'{% endtrans %}</h3>
|
||||
{% if subscribe_form %}
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{ subscribe_form.as_p() }}
|
||||
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>{% trans matmat = user.matmat_user.matmat %}You are subscribed to the Matmatronch {{ matmat }}{% endtrans %}</p>
|
||||
<p><a href="{{ url("matmat:profile") }}">Edit my profile</a></p>
|
||||
<hr>
|
||||
<div>
|
||||
{% for u in user.matmat_user.matmat.users.exclude(id=user.matmat_user.id) %}
|
||||
<div class="ib">
|
||||
<div>{{ u.user.get_display_name() }}</div>
|
||||
{% set comment = u.received_comments.filter(author__id=user.matmat_user.id).first() %}
|
||||
{% if comment %}
|
||||
<a href="{{ url("matmat:edit_comment", comment_id=comment.id) }}">Edit comment</a>
|
||||
{% else %}
|
||||
<a href="{{ url("matmat:new_comment", user_id=u.id) }}">Comment</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user