forked from indymedia/epicyon
				
			Only show edit button to moderators
							parent
							
								
									06ffd4ee13
								
							
						
					
					
						commit
						8e9fd5796a
					
				|  | @ -5152,10 +5152,12 @@ def htmlHighlightLabel(label: str, highlight: bool) -> str: | |||
| 
 | ||||
| def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, | ||||
|                          httpPrefix: str, translate: {}, | ||||
|                          iconsDir: str) -> str: | ||||
|                          iconsDir: str, moderator: bool) -> str: | ||||
|     """Returns html content for the left column | ||||
|     """ | ||||
|     htmlStr = \ | ||||
|     htmlStr = '' | ||||
|     if moderator: | ||||
|         htmlStr += \ | ||||
|             '      <center>\n' + \ | ||||
|             '        <a href="' + \ | ||||
|             httpPrefix + '://' + domainFull + \ | ||||
|  | @ -5484,7 +5486,8 @@ def htmlTimeline(defaultTimeline: str, | |||
|     # left column | ||||
|     leftColumnStr = \ | ||||
|         getLeftColumnContent(baseDir, nickname, domainFull, | ||||
|                              httpPrefix, translate, iconsDir) | ||||
|                              httpPrefix, translate, iconsDir, | ||||
|                              moderator) | ||||
|     tlStr += '  <td class="col-left">' + leftColumnStr + '</td>\n' | ||||
|     # center column containing posts | ||||
|     tlStr += '  <td class="col-center">\n' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue