# HG changeset patch # User Brian Neal # Date 1320454935 18000 # Node ID 4eaaf3809385bb77d6e591135493c9c58e064f90 # Parent 20dc7be59c85d1b84c21a6aca7103e97aba60cb0# Parent ced908af601a5e1cf07e785c3544be499650682e Merge with Reviews template changes. diff -r ced908af601a -r 4eaaf3809385 bns_website/reviews/models.py --- a/bns_website/reviews/models.py Fri Nov 04 19:26:48 2011 -0500 +++ b/bns_website/reviews/models.py Fri Nov 04 20:02:15 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 ced908af601a -r 4eaaf3809385 bns_website/static/css/base.css --- a/bns_website/static/css/base.css Fri Nov 04 19:26:48 2011 -0500 +++ b/bns_website/static/css/base.css Fri Nov 04 20:02:15 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 ced908af601a -r 4eaaf3809385 bns_website/templates/reviews/review_list.html --- a/bns_website/templates/reviews/review_list.html Fri Nov 04 19:26:48 2011 -0500 +++ b/bns_website/templates/reviews/review_list.html Fri Nov 04 20:02:15 2011 -0500 @@ -14,12 +14,15 @@ {% navbar 'reviews' %}

Reviews

+