mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -470,7 +470,7 @@ func RegisterRoutes(m *macaron.Macaron) {
 | 
			
		||||
		m.Group("/notices", func() {
 | 
			
		||||
			m.Get("", admin.Notices)
 | 
			
		||||
			m.Post("/delete", admin.DeleteNotices)
 | 
			
		||||
			m.Get("/empty", admin.EmptyNotices)
 | 
			
		||||
			m.Post("/empty", admin.EmptyNotices)
 | 
			
		||||
		})
 | 
			
		||||
	}, adminReq)
 | 
			
		||||
	// ***** END: Admin *****
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,10 @@
 | 
			
		||||
								<th></th>
 | 
			
		||||
								<th colspan="5">
 | 
			
		||||
									<div class="ui right">
 | 
			
		||||
										<a class="ui red small button" href="{{AppSubUrl}}/admin/notices/empty">{{.i18n.Tr "admin.notices.delete_all"}}</a>
 | 
			
		||||
										<form method="post" action="{{AppSubUrl}}/admin/notices/empty">
 | 
			
		||||
											{{.CsrfTokenHtml}}
 | 
			
		||||
											<button type="submit" class="ui red small button">{{.i18n.Tr "admin.notices.delete_all"}}</button>
 | 
			
		||||
										</form>
 | 
			
		||||
									</div>
 | 
			
		||||
									<div class="ui floating upward dropdown small button">
 | 
			
		||||
										<span class="text">{{.i18n.Tr "admin.notices.actions"}}</span>
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        form button[type='submit'] {
 | 
			
		||||
        form tbody button[type='submit'] {
 | 
			
		||||
            padding: 5px 8px;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user