Skip to content

Commit

Permalink
Refactor form warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pronist committed Jun 27, 2024
1 parent b3f9d4d commit c11a8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/Main/Post/Permalink/Comment/Form.pug
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ mixin guest(type)
mixin form(type)
#form(x-data='{ primary: /^(.*tistory\\.com)$/.test(location.hostname) }')
template(x-if='! primary')
a.warning(:href='TistoryBlog.tistoryUrl')
a.warning(:href='TistoryBlog.tistoryUrl+tiara.entry.plink')
i.ico
span.txt ์ด ๋ธ”๋กœ๊ทธ๋Š” 2์ฐจ ๋„๋ฉ”์ธ์„ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. ๋Œ“๊ธ€์„ ์ž‘์„ฑํ•˜๋ ค๋ฉด 1์ฐจ ๋„๋ฉ”์ธ์œผ๋กœ ์ด๋™ํ•ด์ฃผ์„ธ์š”.
template(x-if='primary && T.config.NEED_COMMENT_LOGIN && (! T.config.IS_LOGIN)')
a.warning(:href='"https://www.tistory.com/auth/login/?redirectUrl="+location.href')
a.warning(:href='T.config.LOGIN_URL')
i.ico
span.txt ์ด ๋ธ”๋กœ๊ทธ๋Š” ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์—๊ฒŒ๋งŒ ๋Œ“๊ธ€์„ ํ—ˆ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.
template(x-if='primary && ((! T.config.NEED_COMMENT_LOGIN) || (T.config.NEED_COMMENT_LOGIN && T.config.IS_LOGIN))')
Expand Down

0 comments on commit c11a8fc

Please sign in to comment.