|
@@ -76,13 +76,19 @@ def tableHelper(style, header, content):
|
76
|
76
|
# menu helper macro
|
77
|
77
|
# -----------------------------------------------------------------------------
|
78
|
78
|
|
79
|
|
-def githubCommitBadge(p):
|
|
79
|
+def githubCommitBadge(p, showInline = False):
|
|
80
|
+ ret = ""
|
80
|
81
|
if p.get("github", "") != "":
|
81
|
82
|
link = p.get("git", p.github)
|
82
|
83
|
linkParts = p.github.split("/")
|
83
|
84
|
if len(linkParts) >= 5:
|
84
|
|
- return "<a href=\"" + link + "\"><img src=\"https://img.shields.io/github/last-commit/" + linkParts[3] + "/" + linkParts[4] + ".svg?logo=git&style=flat\" /></a>"
|
85
|
|
- return ""
|
|
85
|
+ ret += "<a href=\"" + link + "\"><img "
|
|
86
|
+ if showInline:
|
|
87
|
+ ret += "style =\"vertical-align: top;\" "
|
|
88
|
+ ret += "src=\"https://img.shields.io/github/last-commit/"
|
|
89
|
+ ret += linkParts[3] + "/" + linkParts[4]
|
|
90
|
+ ret += ".svg?logo=git&style=flat\" /></a>"
|
|
91
|
+ return ret
|
86
|
92
|
|
87
|
93
|
def printMenuItem(p, yearsAsHeading = False, showDateSpan = False, showOnlyStartDate = False, nicelyFormatFullDate = False, lastyear = "0", lang = "", showLastCommit = True):
|
88
|
94
|
title = p.title
|