# HG changeset patch # User Chris Ridgway # Date 1320379234 18000 # Node ID 20dc7be59c85d1b84c21a6aca7103e97aba60cb0 # Parent a5e8741452a3bd5d8acf67970fdbe87ae5c93177 Addresses three items from #2, comment #2. 1. Made review title a mandatory field 3. Changed reviews display to use Bootstrap
instead of 4. Ordering of reviews is now reverse chronological see ticket #2 diff -r a5e8741452a3 -r 20dc7be59c85 bns_website/reviews/models.py --- a/bns_website/reviews/models.py Tue Nov 01 20:15:21 2011 -0500 +++ b/bns_website/reviews/models.py Thu Nov 03 23:00:34 2011 -0500 @@ -10,7 +10,7 @@ This model represents all the info we store about each review. """ date = models.DateField(auto_now_add=True) - title = models.CharField(max_length=200, blank=True) + title = models.CharField(max_length=200) reviewer = models.CharField(max_length=200) review_site = models.CharField(max_length=200, blank=True) review_url = models.URLField(verify_exists=False, max_length=256, blank=True) @@ -18,6 +18,7 @@ class Meta: verbose_name_plural = "Reviews" + ordering = ['-date'] def __unicode__(self): return self.reviewer diff -r a5e8741452a3 -r 20dc7be59c85 bns_website/static/css/base.css --- a/bns_website/static/css/base.css Tue Nov 01 20:15:21 2011 -0500 +++ b/bns_website/static/css/base.css Thu Nov 03 23:00:34 2011 -0500 @@ -1,5 +1,5 @@ body { - padding-top: 40px + padding-top: 60px } .social-sharing { margin-top: 1.5em; @@ -12,3 +12,15 @@ display: inline-block; vertical-align: top; } + +/* +----------------------------------------------- +Reviews Styles +----------------------------------------------- + */ +.reviews ul { + list-style-type: none; +} +.reviews li { + margin-bottom: 30px; +} diff -r a5e8741452a3 -r 20dc7be59c85 bns_website/templates/reviews/review_list.html --- a/bns_website/templates/reviews/review_list.html Tue Nov 01 20:15:21 2011 -0500 +++ b/bns_website/templates/reviews/review_list.html Thu Nov 03 23:00:34 2011 -0500 @@ -14,12 +14,15 @@ {% navbar 'reviews' %}

Reviews

+