LP#1697716 - Webstaff adds ability to display actor.usr.photo_url if present
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 11 Sep 2017 21:53:34 +0000 (17:53 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 15 Sep 2017 11:47:10 +0000 (07:47 -0400)
This just adds a div row with an ng-if in the summary pane of patron view.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/circ/patron/t_summary.tt2

index c3180bf..632f50b 100644 (file)
@@ -21,6 +21,9 @@
         {{patron().alert_message()}}
       </div>
     </div>
+    <div ng-if="patron().photo_url()" class="row">
+         <div class="col-md-8 patron_photo_wrap"><img class="img-responsive img-rounded" src="{{patron().photo_url()}}" ></div>
+    </div>
     <div class="row" 
       ng-class="{'patron-summary-divider' : alert_penalties().length || patron().alert_message()}">
       <div class="col-md-5">[% l('Profile') %]</div>