                                                                (invitation-rsvp-for-objective? objective invitation-rsvp) (dissoc context :invitation-rsvp)
                                                                :else context)))
                                       [:.clj-modal-contents]
-                                      (if (= :invitation (:type flash))
-                                        (writer-invitation-modal flash objective translations)
+                                      (case (:type modal)
+                                        :invitation (writer-invitation-modal context)
+                                        :share-question (share-question-modal context)
                                         (when (invitation-rsvp-for-objective? objective invitation-rsvp) 
                                           (invitation-rsvp-modal context)))
 

        objective-id (:_id objective)
        candidates (:candidates data)
        flash (:flash doc)
        optionally-disable-voting (if (tf/in-drafting? objective)
                                    (pf/disable-voting-actions translations)
                                    identity)]

                                                                                            (html/set-attr :href (str "/sign-in?refer=" (:uri ring-request)))
                                                                                            (tl8 :invitation-response/sign-in-to-accept))))))))))


(def share-question-modal-snippet (html/select (html/html-resource "templates/jade/modals/share-question-modal.html")
                                               [:.clj-share-question-modal]))

(defn share-question-modal [{:keys [data] :as context}]
  (when-let [question (:created-question data)]
    (html/transformation [:clj-modal-contents]
                         (html/content
                          (html/at share-question-modal-snippet
                                   [:.clj-modal-contents] identity)))))


;; DRAFTING HAS STARTED MESSAGE

(def drafting-message-snippet (html/select pf/library-html-resource [:.clj-drafting-message]))
