mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-04-25 08:04:32 -05:00
fix: report post button shows up on guest page
This commit is contained in:
parent
4c39b2507c
commit
875a435544
|
|
@ -46,7 +46,7 @@
|
|||
</div>
|
||||
<%}%>
|
||||
</div>
|
||||
<%if(locals.mainPost && !post.removed) {%>
|
||||
<%if(locals.mainPost && !post.removed && pid !== 1000000000) {%>
|
||||
<button id="header-communities-button" class="report" href="#" data-post="<%= post.id %>" onclick="reportPost(this)">Report Post</button>
|
||||
<a id="report-launcher" style="display: none" data-module-hide="post" data-module-show="report-post-page" data-header="false" data-menu="false"></a>
|
||||
<%}%>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@
|
|||
<% }); %>
|
||||
</div>
|
||||
</div>
|
||||
<% if (pid !== 1000000000) { %>
|
||||
<div id="report-post-page" class="add-post-page official-user-post" style="display: none">
|
||||
<form method="post" action="/posts/<%=post.id%>/report" id="report-form" name="report" data-is-own-title="1" data-is-identified="1">
|
||||
<input type="hidden" name="post_id" id="report-post-id" value="<%= post.id %>"/>
|
||||
|
|
@ -98,8 +99,8 @@
|
|||
<input type="submit" class="post-button fixed-bottom-button" value="Submit">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user