Skip to content

Commit

Permalink
adding channel cloud on front page [#2 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
ericw committed Aug 12, 2008
2 parents 1da9205 + 36952bf commit 91c441a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion header.html
Expand Up @@ -7,7 +7,6 @@

<link href="/images/favicon.ico" rel="shortcut icon" />
<link href="/stylesheets/style.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/stylesheets/colorpicker.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/scripts/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="/scripts/application.js" type="text/javascript"></script>
</head>
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -6,7 +6,7 @@ <h1>Onelinr <span>by <a href="http://eric.wahlforss.com/2007/04/06/onelinr/">Eri
<form id="new_channel" method="post" onsubmit="location.href = '/' + $('#channel_name').val();return false;">
<div>
<input id="channel_name" name="channel[name]" maxlength="30" type="text" value="Your Oneliner Channel" onclick="this.select()">
<!--<%= submit_tag 'Go to channel' %> hellossses-->
<!--<%= submit_tag 'Go to channel' %> -->
</div>
</form>
<script type="text/javascript">
Expand Down
11 changes: 5 additions & 6 deletions index.yaml
Expand Up @@ -5,6 +5,11 @@ indexes:
- name: post_id
direction: desc

- kind: Channel
properties:
- name: post_count
direction: desc

# AUTOGENERATED

# This index.yaml is automatically updated whenever the dev_appserver
Expand All @@ -28,12 +33,6 @@ indexes:
- name: post_id
direction: desc

# Used 25 times in query history.
- kind: Channel
properties:
- name: post_count
direction: desc

# Unused in query history -- copied from input.
- kind: Post
properties:
Expand Down
6 changes: 4 additions & 2 deletions onelinr.py
Expand Up @@ -15,7 +15,7 @@

settings.INSTALLED_APPS = ('django.contrib.markup', 'onelinr')

SKIP_LIST = ["favicon.ico","robots.txt"]
SKIP_LIST = ["favicon.ico","robots.txt", "feed"]

class Channel(db.Model):
name = db.StringProperty(required=True)
Expand Down Expand Up @@ -135,10 +135,12 @@ def get(self):
def main():
application = webapp.WSGIApplication([('/', StartPage),
('/feed', Feed),
('/feed/', Feed),
('/.*/feed', ChannelFeed),
('/.*/feed/', ChannelFeed),
('/.*/latest', LatestPosts),
('/.*', ChannelPage) ],
debug=True)
debug=False)

run_wsgi_app(application)

Expand Down

0 comments on commit 91c441a

Please sign in to comment.