예제 #1
0
 def items(self):
     return [
         Page("Homepage", reverse("home"), published_comics()[0].date, "1.0", "daily"),
         Page("Archive", reverse("archive_index"), published_comics()[0].date, ".7", "daily"),
         # Page("Donate", reverse("donate"), date(2013, 7, 1), ".5", "monthly"),
         Page("Characters", reverse("characters_index"), date(2013, 7, 5), ".5", "monthly"),
         # Page("Advertise", reverse("become_an_advertiser"), date(2013, 7, 1), ".5", "monthly"),
         Page("Sponsor", reverse("become_a_sponsor"), date(2013, 7, 1), ".5", "monthly"),
         Page("Contact", reverse("contact_me"), date(2013, 8, 1), ".5", "monthly"),
     ]
예제 #2
0
 def items(self):
     return [
         Page("Homepage", reverse("home"),
              published_comics()[0].date, "1.0", "daily"),
         Page("Archive", reverse("archive_index"),
              published_comics()[0].date, ".7", "daily"),
         # Page("Donate", reverse("donate"), date(2013, 7, 1), ".5", "monthly"),
         Page("Characters", reverse("characters_index"), date(2013, 7, 5),
              ".5", "monthly"),
         # Page("Advertise", reverse("become_an_advertiser"), date(2013, 7, 1), ".5", "monthly"),
         Page("Sponsor", reverse("become_a_sponsor"), date(2013, 7, 1),
              ".5", "monthly"),
         Page("Contact", reverse("contact_me"), date(2013, 8, 1), ".5",
              "monthly"),
     ]
예제 #3
0
파일: views.py 프로젝트: Brant/Hate-and-NuT
def homepage(request):
    """
    Website homepage
    """
    latest_comics = published_comics()[:2]
    latest_comic = latest_comics[0]

    previous_comic = None
    if len(latest_comics) > 1:
        previous_comic = latest_comics[1]

    response_data = {"latest_comic": latest_comic, "previous_comic": previous_comic}
    return render_to_response("website/home.html", response_data, context_instance=RequestContext(request))
예제 #4
0
 def items(self):
     return published_comics()
예제 #5
0
 def items(self):
     return published_comics()