forked from jason/cpolis
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			508 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			508 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{define "page-content"}}
 | 
						|
<h2>Hub</h2>
 | 
						|
<button hx-get="/write-article/" hx-target="#page-content">Artikel schreiben</button>
 | 
						|
<button hx-get="/rss/" hx-target="#page-content">RSS Feed</button>
 | 
						|
{{if lt . 2}}
 | 
						|
<button hx-get="/unpublished-articles/" hx-target="#page-content">Unveröffentlichte Artikel</button>
 | 
						|
<button hx-get="/create-tag/" hx-target="#page-content">Neuer Tag</button>
 | 
						|
{{end}}
 | 
						|
{{if eq . 0}}
 | 
						|
<button hx-get="/create-user/" hx-target="#page-content">Benutzer hinzufügen</button>
 | 
						|
{{end}}
 | 
						|
{{end}}
 |