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, | def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, | ||||||
|                          httpPrefix: str, translate: {}, |                          httpPrefix: str, translate: {}, | ||||||
|                          iconsDir: str) -> str: |                          iconsDir: str, moderator: bool) -> str: | ||||||
|     """Returns html content for the left column |     """Returns html content for the left column | ||||||
|     """ |     """ | ||||||
|     htmlStr = \ |     htmlStr = '' | ||||||
|  |     if moderator: | ||||||
|  |         htmlStr += \ | ||||||
|             '      <center>\n' + \ |             '      <center>\n' + \ | ||||||
|             '        <a href="' + \ |             '        <a href="' + \ | ||||||
|             httpPrefix + '://' + domainFull + \ |             httpPrefix + '://' + domainFull + \ | ||||||
|  | @ -5484,7 +5486,8 @@ def htmlTimeline(defaultTimeline: str, | ||||||
|     # left column |     # left column | ||||||
|     leftColumnStr = \ |     leftColumnStr = \ | ||||||
|         getLeftColumnContent(baseDir, nickname, domainFull, |         getLeftColumnContent(baseDir, nickname, domainFull, | ||||||
|                              httpPrefix, translate, iconsDir) |                              httpPrefix, translate, iconsDir, | ||||||
|  |                              moderator) | ||||||
|     tlStr += '  <td class="col-left">' + leftColumnStr + '</td>\n' |     tlStr += '  <td class="col-left">' + leftColumnStr + '</td>\n' | ||||||
|     # center column containing posts |     # center column containing posts | ||||||
|     tlStr += '  <td class="col-center">\n' |     tlStr += '  <td class="col-center">\n' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue