ticket:36 add more columns values
diff --git a/Allura/allura/lib/widgets/project_list.py b/Allura/allura/lib/widgets/project_list.py
index b6ea93f..96605ca 100644
--- a/Allura/allura/lib/widgets/project_list.py
+++ b/Allura/allura/lib/widgets/project_list.py
@@ -32,6 +32,9 @@
         if response['accolades'] is None:
             response['accolades'] = value.accolades
 
+        if type(response['columns']) == unicode:
+            response['columns'] = int(response['columns'])
+
         true_list = ['true', 't', '1', 'yes', 'y']
         if type(response['show_proj_icon']) == unicode:
             if response['show_proj_icon'].lower() in true_list:
@@ -76,7 +79,10 @@
         display_mode='list',
         sitemaps=None,
         icon_urls=None,
-        accolades_index=None)
+        accolades_index=None,
+        columns=3,
+        show_proj_icon=True,
+        show_download_button=True)
 
     def prepare_context(self, context):
         response = super(ProjectList, self).prepare_context(context)
@@ -90,6 +96,22 @@
             response['icon_urls'] = M.Project.icon_urls(projects)
         if response['accolades_index'] is None:
             response['accolades_index'] = M.Project.accolades_index(projects)
+
+        if type(response['columns']) == unicode:
+            response['columns'] = int(response['columns'])
+
+        true_list = ['true', 't', '1', 'yes', 'y']
+        if type(response['show_proj_icon']) == unicode:
+            if response['show_proj_icon'].lower() in true_list:
+                response['show_proj_icon'] = True
+            else:
+                response['show_proj_icon'] = False
+        if type(response['show_download_button']) == unicode:
+            if response['show_download_button'].lower() in true_list:
+                response['show_download_button'] = True
+            else:
+                response['show_download_button'] = False
+
         return response
 
     def resources(self):
diff --git a/Allura/allura/templates/widgets/project_summary.html b/Allura/allura/templates/widgets/project_summary.html
index 60b0e16..6549c2c 100644
--- a/Allura/allura/templates/widgets/project_summary.html
+++ b/Allura/allura/templates/widgets/project_summary.html
@@ -1,5 +1,5 @@
 {% if display_mode == 'list' %}
-<div class="list card"{% if columns == '2' %} style="width: 330px"{% endif %}>
+<div class="list card"{% if columns == 2 %} style="width: 330px"{% elif columns == 1 %} style="width: 660px"{% endif %}>
   {% if show_proj_icon == True %}
    {% if accolades %}
     <div class="box notch sponsor">