diff --git a/src/Mod/Start/StartPage/StartPage.html b/src/Mod/Start/StartPage/StartPage.html index 3b5f3c9aaa..ca3b28fd29 100644 --- a/src/Mod/Start/StartPage/StartPage.html +++ b/src/Mod/Start/StartPage/StartPage.html @@ -30,7 +30,7 @@ SECTION_CUSTOM -
+
T_CUSTOM
diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 58a2f30d9d..3f63056cfb 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -147,6 +147,9 @@ def getInfo(filename): r = re.findall("Property name=\"CreatedBy.*?String value=\"(.*?)\"\/>",doc) if r: author = r[0] + # remove email if present in author field + if "<" in author: + author = author.split("<")[0].strip() r = re.findall("Property name=\"Company.*?String value=\"(.*?)\"\/>",doc) if r: company = r[0] @@ -245,8 +248,8 @@ def buildCard(filename,method,arg=None): result += '' result += '
' result += '

'+encode(basename)+'

' - result += '

'+size+'

' result += '

'+encode(author)+'

' + result += '

'+size+'

' result += '
' result += '' result += '' @@ -381,6 +384,8 @@ def handle(): filename = os.path.join(cfolder,basename) SECTION_CUSTOM += encode(buildCard(filename,method="LoadCustom.py?filename=")) SECTION_CUSTOM += "" + # hide the custom section tooltip if custom section is set (users know about it if they enabled it) + HTML = HTML.replace("id=\"customtip\"","id=\"customtip\" style=\"display:none;\"") HTML = HTML.replace("SECTION_CUSTOM",SECTION_CUSTOM) # build IMAGE_SRC paths