예제 #1
0
파일: entry.py 프로젝트: chripo/acrylamid
    def prev(self, entrylist, i):

        if i == len(entrylist) - 1:
            return None

        refs.append(entrylist[i], entrylist[i + 1])
        return link(entrylist[i+1].title, entrylist[i+1].permalink)
예제 #2
0
파일: entry.py 프로젝트: chripo/acrylamid
    def next(self, entrylist, i):

        if i == 0:
            return None

        refs.append(entrylist[i], entrylist[i - 1])
        return link(entrylist[i-1].title, entrylist[i-1].permalink)
예제 #3
0
    def prev(self, entrylist, i):

        if i == len(entrylist) - 1:
            return None

        refs.append(entrylist[i], entrylist[i + 1])
        return link(entrylist[i + 1].title, entrylist[i + 1].permalink)
예제 #4
0
파일: entry.py 프로젝트: yegle/acrylamid
    def next(self, entrylist, i):

        if i == 0:
            return None

        refs.append(entrylist[i], entrylist[i - 1])
        return link(u"« " + entrylist[i-1].title, entrylist[i-1].permalink.rstrip('/'))
예제 #5
0
    def next(self, entrylist, i):

        if i == 0:
            return None

        refs.append(entrylist[i], entrylist[i - 1])
        return link(entrylist[i - 1].title, entrylist[i - 1].permalink)