ed9aff132907

Updated some MB styles, templates.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 27 Mar 2009 18:28:41 -0400
parents 0a73822701d9
children 0b0276b6360b
branches/tags (none)
files site-media/style/messengerbag.css templates/messengerbag/note_detail.html templates/messengerbag/note_form.html

Changes

--- a/site-media/style/messengerbag.css	Thu Mar 26 20:43:23 2009 -0400
+++ b/site-media/style/messengerbag.css	Fri Mar 27 18:28:41 2009 -0400
@@ -6,6 +6,7 @@
 div#mb-rendered-note h6 {font-size:1em;font-weight:bold;}
 
 p#mb-navigation { margin-top: -1em; }
+p#mb-navigation a { margin-right: 2em; }
 
 span.mb-note-list-title { font-weight: bold; margin-right: 1em; }
 span.mb-note-list-snip { color: #888; }
--- a/templates/messengerbag/note_detail.html	Thu Mar 26 20:43:23 2009 -0400
+++ b/templates/messengerbag/note_detail.html	Fri Mar 27 18:28:41 2009 -0400
@@ -6,7 +6,10 @@
 
 {% block content %}
     <h1><a href="{{ note.get_absolute_url }}">{{ note.title|typogrify }}</a></h1>
-    <p id="mb-navigation"><a href="{% url note-list %}">&laquo; back to your notes</a></p>
+    <p id="mb-navigation">
+        <a href="{% url note-list %}">&laquo; back to your notes</a>
+        <a href="{% url note-edit note.id %}">edit this note</a>
+    </p>
     <div id="mb-rendered-note">
         {{ note.body|markdown:"codehilite"|typogrify }}
     </div>
--- a/templates/messengerbag/note_form.html	Thu Mar 26 20:43:23 2009 -0400
+++ b/templates/messengerbag/note_form.html	Fri Mar 27 18:28:41 2009 -0400
@@ -5,17 +5,22 @@
 {% block title %}Create a Note{% endblock %}
 
 {% block content %}
+    
     <form id="mb-note-create" action="" method="post">
         <h1>{{ form.title }}</h1>
         {% for error in form.title.errors %}
             <p class="mb-error">{{ error }}</p>
         {% endfor %}
         
+        <p id="mb-navigation">
+            <a href="{% url note-list %}">&laquo; back to your notes</a>
+        </p>
+        
         <p>{{ form.body }}</p>
         {% for error in form.body.errors %}
             <p class="mb-error">{{ error }}</p>
         {% endfor %}
         
-        <input id="mb-note-create-submit" type="submit" value="Create" />
+        <input id="mb-note-create-submit" type="submit" value="Save" />
     </form>
 {% endblock %}
\ No newline at end of file