forked from jason/cpolis
		
	small bug fixes
This commit is contained in:
		@@ -73,8 +73,8 @@ func main() {
 | 
			
		||||
	mux.HandleFunc("GET /user/delete/{id}", f.DeleteUser(config, db, store))
 | 
			
		||||
	mux.HandleFunc("GET /user/edit/{id}", f.EditUser(config, db, store))
 | 
			
		||||
	mux.HandleFunc("GET /user/edit/self", f.EditSelf(config, db, store))
 | 
			
		||||
	mux.HandleFunc("GET /user/show-all/delete", f.ShowAllUsers(config, db, store, "delete-user"))
 | 
			
		||||
	mux.HandleFunc("GET /user/show-all/edit", f.ShowAllUsers(config, db, store, "edit-user"))
 | 
			
		||||
	mux.HandleFunc("GET /user/show-all/delete", f.ShowAllUsers(config, db, store, "delete"))
 | 
			
		||||
	mux.HandleFunc("GET /user/show-all/edit", f.ShowAllUsers(config, db, store, "edit"))
 | 
			
		||||
 | 
			
		||||
	mux.HandleFunc("POST /article/resubmit/{id}", f.ResubmitArticle(config, db, store))
 | 
			
		||||
	mux.HandleFunc("POST /article/submit", f.SubmitArticle(config, db, store))
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
<form>
 | 
			
		||||
    <input required name="tag" placeholder="Tag eingeben" type="text" />
 | 
			
		||||
    <div class="btn-area">
 | 
			
		||||
        <input class="action-btn" type="submit" value="Anlegen" hx-post="/add-tag" hx-target="#page-content" />
 | 
			
		||||
        <input class="action-btn" type="submit" value="Anlegen" hx-post="/tag/add" hx-target="#page-content" />
 | 
			
		||||
        <button class="btn" hx-get="/hub" hx-target="#page-content">Abbrechen</button>
 | 
			
		||||
    </div>
 | 
			
		||||
</form>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
        <h2>Autor</h2>
 | 
			
		||||
        <div class="grid grid-cols-2 gap-x-4 gap-y-2">
 | 
			
		||||
            <button class="btn" hx-get="/article/write" hx-target="#page-content">Artikel schreiben</button>
 | 
			
		||||
            <button class="btn" hx-get="/articles/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
 | 
			
		||||
            <button class="btn" hx-get="/article/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
 | 
			
		||||
            <button class="btn" hx-get="/user/edit/self" hx-target="#page-content">Profil bearbeiten</button>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
<div class="flex flex-col gap-4">
 | 
			
		||||
    {{range .RejectedArticles}}
 | 
			
		||||
    {{if index $.MyIDs .ID}}
 | 
			
		||||
    <button class="btn" hx-get="/review-rejected-article/{{.ID}}" hx-target="#page-content">
 | 
			
		||||
    <button class="btn" hx-get="/article/review-rejected/{{.ID}}" hx-target="#page-content">
 | 
			
		||||
        <h1 class="font-bold text-2xl">{{.Title}}</h1>
 | 
			
		||||
        <p>{{.Description}}</p>
 | 
			
		||||
    </button>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
<div class="flex flex-col gap-4">
 | 
			
		||||
    {{range .Users}}
 | 
			
		||||
    <button class="btn" hx-get="/{{$.Action}}/{{.ID}}" hx-target="#page-content">
 | 
			
		||||
    <button class="btn" hx-get="/user/{{$.Action}}/{{.ID}}" hx-target="#page-content">
 | 
			
		||||
        <h1 class="font-bold text-2xl">
 | 
			
		||||
            {{.UserName}}
 | 
			
		||||
            ({{if eq .Role 0}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user