Skip to content

Commit

Permalink
Don't display empty authors
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse committed Mar 30, 2013
1 parent db49678 commit c2f2fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/showDa.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ <h1>@theDa.name</h1>
@if(!theDa.summary.isEmpty) {
<h2>Résumé</h2>
<p>@{Html(theDa.summary.map { _.content.replaceAll("\n", "<br/>")}.get)}</p>
@if(!theDa.summary.get.author.isEmpty) {
@if(!theDa.summary.get.author.isEmpty && !theDa.summary.get.author == "") {
<p class="author">par <strong>@theDa.summary.get.author.get</strong></p>
}
}
@if(!theDa.comment.isEmpty) {
<h2>Commentaire</h2>
<p>@{Html(theDa.comment.map { _.content.replaceAll("\n", "<br/>")}.get)}</p>
@if(!theDa.comment.get.author.isEmpty) {
@if(!theDa.comment.get.author.isEmpty && !theDa.comment.get.author == "") {
<p class="author">par <strong>@theDa.comment.get.author.get</strong></p>
}
}
Expand Down

0 comments on commit c2f2fef

Please sign in to comment.