Skip to content

Commit

Permalink
added edit button to my events pages
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed Aug 28, 2011
1 parent fbcf70c commit 623ae5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/backbone/_events.ejs
Expand Up @@ -121,6 +121,10 @@
No description provided
{% } %}
{% } %}

{% if (USERNAME === author) { %}
<a href="#events/{{ _id }}/edit">edit</a>
{% } %}
</p>

<footer class="lists">
Expand Down
1 change: 1 addition & 0 deletions views/frontend.ejs
Expand Up @@ -63,6 +63,7 @@
</center>

<script type="text/javascript">
window.USERNAME = '<% if (everyauth.loggedIn) { %><%= everyauth.twitter.user.name %><% } %>';
$(function(){ App.init(); });
</script>
</body>
Expand Down

0 comments on commit 623ae5a

Please sign in to comment.