Skip to content

Commit

Permalink
fixing minor css issue, and somewhat major model issue
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Nov 5, 2009
1 parent 5865a48 commit 558d419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions www/main.py
Expand Up @@ -99,9 +99,10 @@ class Notification(db.Model):
updated = db.DateTimeProperty(auto_now=True)

def __init__(self, *args, **kwargs):
if 'channel' in kwargs:
kwargs['source'] = kwargs['channel'].source
kwargs['target'] = kwargs['channel'].target
channel = kwargs.get('channel')
if channel and isinstance(channel, Channel):
kwargs['source'] = channel.source
kwargs['target'] = channel.target
super(Notification, self).__init__(*args, **kwargs)

def to_json(self):
Expand Down
3 changes: 2 additions & 1 deletion www/static/style.css
Expand Up @@ -60,7 +60,8 @@ body {
#panel p {font-size: 14px; margin-left: 5px; margin-bottom: 10px; }
#sidebar { float: right; width: 200px; font-size: 14px;}
#sidebar p { margin-bottom: 15px; }

#sidebar ul { margin-left: 20px; }
#sidebar li { color: #222;}

#feature {
background: #E5E5E5;
Expand Down

0 comments on commit 558d419

Please sign in to comment.