Commits

boblefrag committed 806f05d Draft

added a share on twitter link on the snippet detail template

  • Participants
  • Parent commits 36c498c

Comments (0)

Files changed (1)

File templates/snippet/snippet_detail.html

     <a href="edit/" class="btn">Edit</a>
     <a href="delete/" class="btn">Delete</a>
     {% endif %}
+</div>
 
-</div>
+
+<script>
+link = "<a class='btn btn-info'"
+link += "href='http://twitter.com/home?status="
+link += window.location.href
+link += " {{object.title}}'>Share On twitter</a>"
+$('.actions').append(link)
+</script>
+
+
     {% endblock content %}