rewrite print to use ng-show and ng-class
[angular-drzb] / app / registration / view.html.ep
index be6d902..70d2ee2 100644 (file)
@@ -1,4 +1,4 @@
-<dt class="print-hide">
+<dt ng-show="! print.layout">
 % if ( my $before = stash('before') ) {
 %= $before->()
 % }
@@ -15,7 +15,7 @@
 
 <dd>
 
-       <p class="well print-hide">
+       <p class="well" ng-show="! print.layout">
         {{registration.user.firstname}}
         {{registration.user.surname}}
         <em>{{registration.user.organization}}</em>,
  </p>
 </p>
 
-<h3 ng-show="registration.work.title" class="print-add-center">
+<h3 ng-show="registration.work.title" ng-class="print.center">
 {{registration.work.title}}
 </h3>
 
-<p ng-repeat="author in registration.work.persons" class="print-add-center">
+<p ng-repeat="author in registration.work.persons" ng-class="print.center">
  {{author.firstname}}
- {{author.surname}}<span class="print-hide">,</span>
- <em class="print-add-center">{{author.organization}}</em>
- <tt class="print-hide">&lt;{{author.email}}&gt;</tt>
+ {{author.surname}}<span ng-show="! print.layout">,</span>
+ <br ng-show="print.layout">
+ <em ng-class="print.center">{{author.organization}}</em>
+ <tt ng-show="! print.layout">&lt;{{author.email}}&gt;</tt>
 </p>
 
 <p class="abstract">{{registration.work.abstract}}</p>