Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added links to badge gifter profile #1250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/html/emails/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

{% block body %}
<p>
{{ user_badge.from_user.full_name }} подарил вам награду
<a href="{% url "profile" user_badge.from_user.slug %}">{{ user_badge.from_user.full_name }}</a> подарил вам награду
{% if user_badge.comment %}
за комментарий к посту <strong>«<a href="{% url "show_post" user_badge.comment.post.type user_badge.comment.post.slug %}#comment-{{ user_badge.comment.id }}">{{ user_badge.comment.post.title }}</a>»</strong>.
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion notifications/telegram/templates/messages/badge.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
🎖 {{ user_badge.from_user.full_name }} подарил вам награду «{{ user_badge.badge.title }}» {% if user_badge.comment %}за комментарий к посту <b>«<a href="{{ settings.APP_HOST }}{% url "show_post" user_badge.comment.post.type user_badge.comment.post.slug %}#comment-{{ user_badge.comment.id }}">{{ user_badge.comment.post.title }}</a>»</b>.{% else %}за пост <b>«<a href="{{ settings.APP_HOST }}{% url "show_post" user_badge.post.type user_badge.post.slug %}">{{ user_badge.post.title }}</a>»</b>.{% endif %}
🎖 <a href="{% url "profile" user_badge.from_user.slug %}">{{ user_badge.from_user.full_name }}</a> подарил вам награду «{{ user_badge.badge.title }}» {% if user_badge.comment %}за комментарий к посту <b>«<a href="{{ settings.APP_HOST }}{% url "show_post" user_badge.comment.post.type user_badge.comment.post.slug %}#comment-{{ user_badge.comment.id }}">{{ user_badge.comment.post.title }}</a>»</b>.{% else %}за пост <b>«<a href="{{ settings.APP_HOST }}{% url "show_post" user_badge.post.type user_badge.post.slug %}">{{ user_badge.post.title }}</a>»</b>.{% endif %}
oneunreadmail marked this conversation as resolved.
Show resolved Hide resolved
{% if user_badge.note %}<i>{{ user_badge.note }}</i>
{% endif %}
Награда теперь будет висеть <a href="{{ settings.APP_HOST }}{% url "profile" user_badge.to_user.slug %}">в вашем профиле</a> и все будут знать какой вы крутой.