really hide registration types without submissions
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 10 Jan 2013 23:44:05 +0000 (00:44 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 10 Jan 2013 23:44:05 +0000 (00:44 +0100)
app/partials/list.html.ep

index 07424f8..5ca398c 100644 (file)
@@ -7,13 +7,15 @@ Loading data...
 
 <h2>Odaberite tip registracije</h2>
 
-<label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code">
+<label class="radio input-block-level" ng-repeat="type in RegistrationTypes" ng-switch on="type.code" ng-show="RegistrationTypeCount[type.code] > 0">
 <hr ng-switch-when="false">
-<span ng-switch-default ng-show="RegistrationTypeCount[type.code] > 0">
+<span ng-switch-default>
  <tt>{{RegistrationTypeCount[type.code]}}</tt>
  <input type="radio" name="search.registration_type" ng-model="search.registration_type" value="{{type.code}}" >
  {{type.label}}
+<!--
  <i>{{type.description}}</i>
+-->
 </span>
 </label>