-
Notifications
You must be signed in to change notification settings - Fork 1
[25.10.04 / TASK-250] Feature - 주간 뉴스레터 수신거부 기능 추가 #46
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
base: main
Are you sure you want to change the base?
Changes from all commits
0fe8457
ed6c834
0ecfe5c
01e6fd4
b91ebc9
193a8fb
aaab5bc
dcc7e1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,29 +134,30 @@ | |
{{weekly_trend_html}} | ||
{% endif %} | ||
|
||
<h2 | ||
style=" | ||
box-sizing: border-box; | ||
margin-top: 40px; | ||
color: #000000; | ||
font-size: 24px; | ||
font-weight: 900; | ||
letter-spacing: 0; | ||
" | ||
> | ||
{% if user.username %} | ||
{{user.username}}님의 활동 리포트 | ||
{% else %} | ||
활동 리포트 | ||
{% endif %} | ||
</h2> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 개인적으로 궁금해서 님기는 코멘트이니 편하게 답변 부탁드려요!! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 지난번에 템플릿 수정이후로 저게 중복되어서 들어가 있더라고요. (index.html 에도, user_weekly_trend.html 에도) |
||
{% if not is_expired_token_user and user_weekly_trend_html %} | ||
{{user_weekly_trend_html}} | ||
{% endif %} | ||
|
||
{% if is_expired_token_user %} | ||
<!-- Token Expired Warning --> | ||
<div style="margin-bottom: 40px; box-sizing: border-box"> | ||
<h2 | ||
style=" | ||
font-size: 24px; | ||
font-weight: 900; | ||
color: #000000; | ||
margin-bottom: 20px; | ||
letter-spacing: 0; | ||
box-sizing: border-box; | ||
" | ||
> | ||
{% if user.username %} | ||
{{user.username}}님의 활동 리포트 | ||
{% else %} | ||
활동 리포트 | ||
{% endif %} | ||
</h2> | ||
<div | ||
style=" | ||
background-color: #fffbd7; | ||
|
@@ -311,6 +312,21 @@ | |
> | ||
개인정보처리방침 | ||
</a> | ||
| | ||
<!-- 뉴스레터 구독 해제: API 엔드포인트로 직접 구독 해제 처리 --> | ||
<a | ||
href="https://velog-dashboard.kro.kr/api/user/newsletter-unsubscribe?email={{user.email}}" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
style=" | ||
color: #4d4d4d; | ||
text-decoration: underline; | ||
box-sizing: border-box; | ||
display: inline-block; | ||
" | ||
> | ||
수신 거부 | ||
</a> | ||
</p> | ||
</td> | ||
</tr> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 5.1.6 on 2025-10-01 17:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("users", "0013_user_thumbnail"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="user", | ||
name="newsletter_subscribed", | ||
field=models.BooleanField( | ||
default=True, verbose_name="뉴스레터 구독 여부" | ||
), | ||
), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 이 부분에 초 단위까지 표시하게 바뀐 이유가 뭘까요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지난 현우님 핫픽스의 사이드이펙트입니다~! 테스트가 실패해서 그냥 고쳐두었습니다.