Commit f2bbbc9e authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Fixing the person view for Cubicweb

parent 860e6265c709
...@@ -3,15 +3,30 @@ ...@@ -3,15 +3,30 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">
<img :src="person.depiction.__resource.uri" height="300px"/> <img v-if="person.depiction" :src="person.depiction.__resource.uri" height="300px"/>
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8">
<h1> <h1>
{{person.title}} {{person.title}}
{{person.name}} <span v-if="person.__warnings['title'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['title']">
<span v-if="person.__warnings['name'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['name']">
&#x26A0; &#x26A0;
</span> </span>
<span v-if="person.name">
{{person.name}}
<span v-if="person.__warnings['name'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['name']">
&#x26A0;
</span>
</span>
<span v-else>
{{person.firstName}}
<span v-if="person.__warnings['firstName'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['firstName']">
&#x26A0;
</span>
{{person.lastName}}
<span v-if="person.__warnings['lastName'] != undefined" style="color: yellow; font-size: 8pt;" :title="person.__warnings['lastName']">
&#x26A0;
</span>
</span>
</h1> </h1>
<table class="table table-bordered table-hover"> <table class="table table-bordered table-hover">
<tbody> <tbody>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment