diff --git a/src/main/twirl/helper/activities.scala.html b/src/main/twirl/helper/activities.scala.html index 6b1662c..70435f5 100644 --- a/src/main/twirl/helper/activities.scala.html +++ b/src/main/twirl/helper/activities.scala.html @@ -12,31 +12,33 @@ @activityMessage(activity.message) @activity.additionalInfo.map { additionalInfo => - @(activity.activityType match { - case "create_wiki" => { -
Created {additionalInfo}.
- } - case "edit_wiki" => { -
Edited {additionalInfo}.
- } - case "push" => { -
- {additionalInfo.split("\n").reverse.take(4).zipWithIndex.map{ case (commit, i) => - if(i == 3){ -
...
- } else { -
- {commit.substring(0, 7)} - {commit.substring(41)} -
- } - }} -
- } - case _ => { -
{additionalInfo}
- } - }) + @if(additionalInfo.nonEmpty){ + @(activity.activityType match { + case "create_wiki" => { +
Created {additionalInfo}.
+ } + case "edit_wiki" => { +
Edited {additionalInfo}.
+ } + case "push" => { +
+ {additionalInfo.split("\n").reverse.take(4).zipWithIndex.map{ case (commit, i) => + if(i == 3){ +
...
+ } else { +
+ {commit.substring(0, 7)} + {commit.substring(41)} +
+ } + }} +
+ } + case _ => { +
{additionalInfo}
+ } + }) + } } }