comparison rhodecode/templates/index_base.html @ 3625:260a7a01b054 beta

follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.
author Mads Kiilerich <madski@unity3d.com>
date Thu, 28 Mar 2013 01:10:45 +0100
parents 53eafc983b5c
children 77e6e941001f
comparison
equal deleted inserted replaced
3624:4dddb7ee8865 3625:260a7a01b054
70 <div id="welcome" style="display:none;text-align:center"> 70 <div id="welcome" style="display:none;text-align:center">
71 <h1><a href="${h.url('home')}">${c.rhodecode_name} ${c.rhodecode_version}</a></h1> 71 <h1><a href="${h.url('home')}">${c.rhodecode_name} ${c.rhodecode_version}</a></h1>
72 </div> 72 </div>
73 <%cnt=0%> 73 <%cnt=0%>
74 <%namespace name="dt" file="/data_table/_dt_elements.html"/> 74 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
75 % if c.visual.lightweight_dashboard is False: 75 % if not c.visual.lightweight_dashboard:
76 ## old full detailed version 76 ## old full detailed version
77 <div id='repos_list_wrap' class="yui-skin-sam"> 77 <div id='repos_list_wrap' class="yui-skin-sam">
78 <table id="repos_list"> 78 <table id="repos_list">
79 <thead> 79 <thead>
80 <tr> 80 <tr>
129 <div class="yui-skin-sam" id="repos_list_wrap"></div> 129 <div class="yui-skin-sam" id="repos_list_wrap"></div>
130 <div id="user-paginator" style="padding: 0px 0px 0px 0px"></div> 130 <div id="user-paginator" style="padding: 0px 0px 0px 0px"></div>
131 % endif 131 % endif
132 </div> 132 </div>
133 </div> 133 </div>
134 % if c.visual.lightweight_dashboard is False: 134 % if not c.visual.lightweight_dashboard:
135 <script> 135 <script>
136 YUD.get('repo_count').innerHTML = ${cnt+1 if cnt else 0}; 136 YUD.get('repo_count').innerHTML = ${cnt+1 if cnt else 0};
137 137
138 // groups table sorting 138 // groups table sorting
139 var myColumnDefs = [ 139 var myColumnDefs = [