mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
better error for anonymous interaction attempt
This commit is contained in:
parent
62d9908670
commit
6108dbab3f
2 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ function bindInteractions() {
|
|||
|
||||
function loggedOutInteractions() {
|
||||
[].forEach.call(document.querySelectorAll('.interaction--fave,.interaction--upvote,.interaction--downvote'),
|
||||
a => a.setAttribute('href', '/users/sign_in'));
|
||||
a => a.setAttribute('href', '/session/new'));
|
||||
}
|
||||
|
||||
function setupInteractions() {
|
||||
|
|
|
@ -24,5 +24,5 @@ span.tag.dropdown data-tag-category="#{@tag.category}" data-tag-id="#{@tag.id}"
|
|||
a.tag__dropdown__link.hidden data-method="delete" data-remote="true" data-tag-action="unhide" href=Routes.filter_hide_path(@conn, :delete, tag: @tag) Unhide
|
||||
a.tag__dropdown__link.hidden data-method="post" data-remote="true" data-tag-action="hide" href=Routes.filter_hide_path(@conn, :create, tag: @tag) Hide
|
||||
|
||||
a.tag__dropdown__link.hidden href="/users/sign_in" Sign in to Watch
|
||||
a.tag__dropdown__link.hidden href="/session/new" Sign in to Watch
|
||||
a.tag__dropdown__link.hidden href="/filters" Filter
|
Loading…
Reference in a new issue