Skip to content

Commit

Permalink
delete more code
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Mar 2, 2010
1 parent 68c0fac commit 5b64555
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _attachments/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3 id="chandesc">Powered by <a href="http://couchdb.apache.org">Apache CouchDB<
</div> </div>
<div id="activity"> <div id="activity">
<div id="profile"></div> <div id="profile"></div>
<ul id="chat"></div> <ul id="chat"></ul>
</div> </div>
<br style="clear:both;"/> <br style="clear:both;"/>
</div> </div>
Expand Down
1 change: 1 addition & 0 deletions _attachments/script/app.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ $.couch.app(function(app) {


$.evently.connect($("#account"), $("#profile"), ["loggedIn", "loggedOut"]); $.evently.connect($("#account"), $("#profile"), ["loggedIn", "loggedOut"]);


// start the chat widget
$("#chat").evently(app.ddoc.evently.chat, app); $("#chat").evently(app.ddoc.evently.chat, app);
}); });
6 changes: 0 additions & 6 deletions evently/chat/_changes/data.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ function(row) {
body : $.linkify($.mustache.escape(v.body)), body : $.linkify($.mustache.escape(v.body)),
name : v.author && v.author.nickname || "", name : v.author && v.author.nickname || "",
url : v.author && v.author.url || "", url : v.author && v.author.url || "",
id : row.id,
created_at : $.prettyDate(v.created_at) created_at : $.prettyDate(v.created_at)
}; };
var p = $$("#profile").profile;
if (p && v.author && v.author.rand && (v.author.rand == p.rand)) {
// todo _admin owns everything...
d.owned = true;
}
return d; return d;
}; };
3 changes: 1 addition & 2 deletions evently/chat/_changes/mustache.html
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
<li data-id="{{id}}"> <li>
<div class="avatar"> <div class="avatar">
{{#avatar_url}}<img src="{{avatar_url}}"/>{{/avatar_url}} {{#avatar_url}}<img src="{{avatar_url}}"/>{{/avatar_url}}
<br/> <br/>
Expand All @@ -7,7 +7,6 @@
<div class="body">{{{body}}}</div> <div class="body">{{{body}}}</div>
<div class="meta"> <div class="meta">
<span class="date">{{created_at}}</span> <span class="date">{{created_at}}</span>
{{#owned}}<a class="delete" href="#delete">[x]</a>{{/owned}}
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</li> </li>

0 comments on commit 5b64555

Please sign in to comment.