Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Trezoid committed Apr 29, 2012
2 parents 7180481 + d8f7471 commit efcf28b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions static/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ margin: 0;
padding: 0;
}

ul.flat li {
list-style: none;
margin: 10px 0;
}

small {
font-size: .8em;
color: #999;
Expand Down
3 changes: 2 additions & 1 deletion templates/admin/news.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{% extends "base.html" %}
{% block title %}News Admin{% endblock %}
{% block includes %}
<link rel="stylesheet" type="text/css" href="/static/css/buttons.css" />
{% endblock %}
{% block content %}
<h1>News</h1>
<a href="{{ handler.admin.get_news_create }}">Create</a>
<a href="{{ handler.admin.get_news_create }}" class="silver button">Create</a>
<ul>
{% for story in news %}
<li><a href="{{ handler.admin.get_news.url(story.id) }}">{{ story.headline }}</a></li>
Expand Down
4 changes: 3 additions & 1 deletion templates/admin/news_create.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends "base.html" %}
{% block title %}New News{% endblock %}
{% block includes %}
<link rel="stylesheet" type="text/css" href="/static/css/forms.css" />
<link rel="stylesheet" type="text/css" href="/static/css/buttons.css" />
<style>
label{ float:left;}
input, textarea{ margin-bottom: 10px; padding: 5px}
Expand All @@ -10,6 +12,6 @@
<form action="{{ handler.admin.post_news_create }}" method="POST">$CSRF$
<label> Headline:</label> <input type="text" name="headline"><br>
<label>Content:</label> <textarea name="story" cols="80" rows="20"></textarea><br>
<input type="submit" value="Save">
<button type="submit" value="Save">Save</button>
</form>
{% endblock %}
3 changes: 1 addition & 2 deletions templates/invite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h3>Invite a friend</h3>
</script>
<br>
<form action="{{ handler.invite.post_index }}" method="POST">$CSRF$
<label class="small">Email:</label><input type="text" name="email"><br>
<button type="submit">Invite</button>
<label class="small">Email an invite:</label><input type="text" name="email"> <button type="submit">Invite</button>
</form>
{% endblock %}

0 comments on commit efcf28b

Please sign in to comment.