liquid_feedback_frontend
view env/lf4rcs/render_draft_reference.lua @ 1244:ae9812d9f653
Updated documentation (removed WebMCP 1.x support)
| author | jbe | 
|---|---|
| date | Mon Dec 21 12:21:52 2015 +0100 (2015-12-21) | 
| parents | 30523f31b186 | 
| children | 
 line source
     1 function lf4rcs.render_draft_reference(draft, wrapper)
     2   local repository, path, url = lf4rcs.get_config(draft.initiative.issue.area.unit)
     3   if not (config.lf4rcs[repository] and config.lf4rcs[repository].render_draft_reference) then
     4     error("Unsupported repository type")
     5   end
     6   if draft.external_reference then
     7     wrapper(function()
     8       config.lf4rcs[repository].render_draft_reference(url, draft)
     9     end)
    10   end
    11 end
