changeset 2738:5243e696d247

Made default acl string green in item acl report and made submit acl button smaller
author Ajitesh Gupta <ajgupta93@gmail.com>
date Sun, 17 Aug 2014 03:06:12 +0530
parents e7fa2fbde5d8
children 58baea76af1e
files MoinMoin/apps/admin/templates/admin/item_acl_report.html MoinMoin/themes/modernized/static/css/stylus/theme.styl MoinMoin/themes/modernized/static/css/theme.css
diffstat 3 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/templates/admin/item_acl_report.html	Sun Aug 17 02:47:02 2014 +0530
+++ b/MoinMoin/apps/admin/templates/admin/item_acl_report.html	Sun Aug 17 03:06:12 2014 +0530
@@ -24,15 +24,12 @@
                     <td>
                         {% if user.may.admin(item['fqname']) %}
                             <form id="moin-acl-form" action="{{ url_for('admin.modify_acl', item_name=item['fqname']) }}" method="POST">
-                                <input type="text" class="moin-acl-string" name="{{ item['itemid'] }}" value="{{ item['acl'] }}"/>
+                                <input type="text" class="moin-acl-string" {%if item['acl_default'] %}style="color:green;"{%endif%} name="{{ item['itemid'] }}" value="{{ item['acl'] }}"/>
                                 <input type="submit" value="{{ _("Modify ACL") }}"/>
                             </form>
                         {% else %}
                             {{ item['acl'] }}
                         {% endif %}
-                        {% if item['acl_default'] %}
-                            {{ _(" (Default) ") }}
-                        {% endif %}
                     </td>
                 </tr>
             {% endfor %}
--- a/MoinMoin/themes/modernized/static/css/stylus/theme.styl	Sun Aug 17 02:47:02 2014 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/theme.styl	Sun Aug 17 03:06:12 2014 +0530
@@ -257,7 +257,6 @@
     border none
     form
         input
-            width 100%
             box-shadow none
 
 .zebra tbody tr, .zebra > tr
--- a/MoinMoin/themes/modernized/static/css/theme.css	Sun Aug 17 02:47:02 2014 +0530
+++ b/MoinMoin/themes/modernized/static/css/theme.css	Sun Aug 17 03:06:12 2014 +0530
@@ -250,7 +250,7 @@
 .zebra thead{background-color:#708090}
 .zebra tfoot{background-color:#dfdfdf}
 .zebra td{border:none;}
-.zebra td form input{width:100%;box-shadow:none}
+.zebra td form input{box-shadow:none}
 .zebra tbody tr,.zebra > tr{background-color:#eef1f6}
 .zebra tbody tr:nth-child(odd),.zebra > tr:nth-child(odd){background-color:#d8dfe9}
 div.moin-table-of-contents{border:1px solid #4e7da9;color:#000;background:#fff;font-size:80%;margin:.5em 0 .75em 1em;padding:.5em .75em .5em .5em;text-indent:-1em;max-width:35%;text-align:left;float:right;clear:both;box-shadow:3px 3px 6px #9d9d9b;border-radius:15px}