示例#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)