                                                                                         (case (:size pb)
                                                                                           "h1" [:phrase.generic {:align :left }
                                                                                                 #_[:spacer 0]
-                                                                                                [:chunk.chunk (str (t :page/Heading ul)": ")] [:chunk (:content pb)]
+                                                                                                [:chunk.chunk (str (t :page/Heading ul)": ")] [:chunk (str (or (:content pb) "-"))]
                                                                                                 ]
                                                                                           "h2" [:phrase.generic {:align :left}
                                                                                                 #_[:spacer 0]
-                                                                                                [:chunk.chunk (str (t :page/Subheading ul) ": ")] [:chunk (:content pb)]] ))
+                                                                                                [:chunk.chunk (str (t :page/Subheading ul) ": ")] [:chunk (str (or (:content pb) "-"))]] ))
                                                                                       (when (= "badge" (:type pb))
                                                                                         [:phrase
                                                                                          [:phrase.chunk (str (t :badge/Badge ul) ": ")]
-                                                                                         [:anchor {:target (str site-url "/badge/info/" (:badge_id pb))} [:chunk.link (:name pb)]]"\n"
+                                                                                         [:anchor {:target (str site-url "/badge/info/" (:badge_id pb))} [:chunk.link (str (:name pb))]]"\n"
                                                                                          ]
                                                                                         )
                                                                                       (when (= "html" (:type pb))

                                              (when-not (empty? $events)
                                                (into [:table.generic {:header [(t :social/Action ul) (t :social/Object ul) (t :social/Objecttype ul) (t :social/Created ul)]}]
                                                      (for [e (reverse $events)]
                                                        [[:cell (:verb e)]
                                                         [:cell  [:phrase
                                                                  [:chunk (or (get-in e [:info :object_name]) "-")]"\n"
                                                                  (if (contains? (:info e) :message)
                                                                    [:chunk {:style :italic} (get-in e [:info :message :message])])]]
                                                         [:cell (:type e)]
                                                         [:cell (date-from-unix-time (long (* 1000 (:ctime e))) "date")]
                                                         ])))
                                              ])]

                                                 (into [:paragraph] (for [pb $pending_badges]
                                                                      [:paragraph
                                                                       [:chunk.chunk (str (t :badge/BadgeID ul) ": ")] [:chunk (str (:badge_id pb))]"\n"
                                                                       [:chunk.chunk (str (t :badge/Name ul) ": ")] [:chunk (or (:name pb) "-")]"\n"
                                                                       (when-not (blank? (:description pb))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :page/Description ul) ": ")] [:chunk  (:description pb)]"\n"])
                                                                       (when-not (blank? (:image_file pb))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Imagefile ul) ": ")] [:chunk.link (str site-url "/" (:image_file pb)) ]"\n"])
                                                                       (when-not (blank? (:assertion_url pb))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Assertionurl ul) ": ")] [:chunk.link (:assertion_url pb) ]"\n"])
                                                                       (when (not-empty (:tags pb))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Tags ul) ": ")] [:chunk (join ", " (:tags pb))]"\n"])
                                                                       (when-not (blank? (:visibility pb))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Badgevisibility ul) ": ")] [:chunk (:visibility pb)]"\n"])

                                                                       (when-not (blank? (str (:issued_on pb)))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Issuedon ul) ": ")] [:chunk (str (date-from-unix-time (long (* 1000 (:issued_on pb))) "date") ", ")]])

                                                                       (when-not (blank? (str (:expires_on pb)))
                                                                         [:phrase
                                                                          [:chunk.chunk (str (t :badge/Expireson ul) ": ")] [:chunk (str (date-from-unix-time (long (* 1000 (:expires_on pb))) "date") "")]])
                                                                       [:spacer 0]]))])
