From 7a666d2589b672b2774f96ba3ca3c0135b776bed Mon Sep 17 00:00:00 2001
From: Keith Harris <keith.harris@360i.com>
Date: Fri, 19 Jul 2013 12:03:40 -0400
Subject: [PATCH] display permissions as a table

---
 app/views/help/permissions.html.haml | 219 +++++++++++++++++++--------
 1 file changed, 157 insertions(+), 62 deletions(-)

diff --git a/app/views/help/permissions.html.haml b/app/views/help/permissions.html.haml
index 2c093ba4cd..becc3e403d 100644
--- a/app/views/help/permissions.html.haml
+++ b/app/views/help/permissions.html.haml
@@ -2,65 +2,160 @@
   %h3.page-title Permissions
   %br
 
-  %fieldset
-    %legend Guest
-    %ul
-      %li Create new issue
-      %li Leave comments
-      %li Write on project wall
-
-  %fieldset
-    %legend Reporter
-    %ul
-      %li Create new issue
-      %li Leave comments
-      %li Write on project wall
-      %li Pull project code
-      %li Download project
-      %li Create a code snippets
-
-
-  %fieldset
-    %legend Developer
-    %ul
-      %li Create new issue
-      %li Leave comments
-      %li Write on project wall
-      %li Pull project code
-      %li Download project
-      %li Create new merge request
-      %li Create a code snippets
-      %li Create new branches
-      %li Push to non-protected branches
-      %li Remove non-protected branches
-      %li Add tags
-      %li Write a wiki
-
-  %fieldset
-    %legend Master
-    %ul
-      %li Create new issue
-      %li Leave comments
-      %li Write on project wall
-      %li Pull project code
-      %li Download project
-      %li Create new merge request
-      %li Create a code snippets
-      %li Create new branches
-      %li Push to non-protected branches
-      %li Remove non-protected branches
-      %li Add tags
-      %li Write a wiki
-      %li Add new team members
-      %li Push to protected branches
-      %li Remove protected branches
-      %li Edit project
-      %li Add Deploy Keys to project
-      %li Configure Project Hooks
-
-  %fieldset
-    %legend Owner
-    %ul
-      %li Switch public mode
-      %li Transfer project to another namespace
-      %li Remove project
+  %table
+    %thead
+      %tr
+        %td
+        %td Guest
+        %td Reporter
+        %td Developer
+        %td Master
+        %td Owner
+    %tbody
+      %tr
+        %td Create new issue
+        %td X
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Leave comments
+        %td X
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Write on project wall
+        %td X
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Pull project code
+        %td
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Download project
+        %td
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Create code snippets
+        %td
+        %td X
+        %td X
+        %td X
+        %td
+      %tr
+        %td Create new merge request
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Create new branches
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Push to non-protected branches
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Remove non-protected branches
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Add tags
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Write a wiki
+        %td
+        %td
+        %td X
+        %td X
+        %td
+      %tr
+        %td Add new team members
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Push to protected branches
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Remove protected branches
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Edit project
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Add Deploy Keys to project
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Configure Project Hooks
+        %td
+        %td
+        %td
+        %td X
+        %td
+      %tr
+        %td Switch public mode
+        %td
+        %td
+        %td
+        %td
+        %td X
+      %tr
+        %td Transfer project to another namespace
+        %td
+        %td
+        %td
+        %td
+        %td X
+      %tr
+        %td Remove project
+        %td
+        %td
+        %td
+        %td
+        %td X
-- 
2.30.9