Skip to content

Instantly share code, notes, and snippets.

@kissarat
Created October 8, 2012 06:25
Show Gist options
  • Save kissarat/3851013 to your computer and use it in GitHub Desktop.
Save kissarat/3851013 to your computer and use it in GitHub Desktop.
<input type="hidden" value="<%= id %>" />
<div class="leftSide">
<fb:profile-pic uid="<%= author_id %>" size="square" facebook-logo="false" linked="true"></fb:profile-pic>
</div>
<div class="rightSide">
<div class="nickNameContainer"><fb:name uid="<%= author_id %>" use-you="no"></fb:name></div>
<div style="float: right; cursor: pointer;">
<% if (approved==1) { %>
<button class="voteButton" onclick="vote(<%= id %>)">LubiД™ to!</button>
<% } else { %>
<img class="command" onclick="approve(<%= id %>)" src="images/approve.png" alt='Pochwalać' />
<img class="command" onclick="deletePost(<%= id %>)" src="images/delete.png" alt='UsunД…Д‡' />
<% } %>
</div>
<p style="width: 100%;"><%= text %></p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment