Add var attachModel to the jade file included

stable
David Barragán Merino 2014-07-29 14:42:21 +02:00
parent 12498811d7
commit fd892e17e8
8 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,7 @@ block content
section.us-content section.us-content
textarea(placeholder="Write a description of your issue", ng-model="issue.description", tg-markitup) textarea(placeholder="Write a description of your issue", ng-model="issue.description", tg-markitup)
- var attachModel = "issue"
include views/modules/attachments include views/modules/attachments
textarea(ng-model="issue.comment", placeholder="Write here a new commet") textarea(ng-model="issue.comment", placeholder="Write here a new commet")

View File

@ -29,6 +29,7 @@ block content
section.us-content.wysiwyg(tg-bind-html="issue.description_html") section.us-content.wysiwyg(tg-bind-html="issue.description_html")
- var attachModel = "issue"
include views/modules/attachments include views/modules/attachments
section.us-activity section.us-activity

View File

@ -26,6 +26,7 @@ block content
section.us-content section.us-content
textarea(placeholder="Write a description of your task", ng-model="task.description", tg-markitup) textarea(placeholder="Write a description of your task", ng-model="task.description", tg-markitup)
- var attachModel = "task"
include views/modules/attachments include views/modules/attachments
textarea(ng-model="task.comment", placeholder="Write here a new commet") textarea(ng-model="task.comment", placeholder="Write here a new commet")

View File

@ -29,6 +29,7 @@ block content
section.us-content.wysiwyg(tg-bind-html="task.description_html") section.us-content.wysiwyg(tg-bind-html="task.description_html")
- var attachModel = "task"
include views/modules/attachments include views/modules/attachments
section.us-activity section.us-activity

View File

@ -26,6 +26,7 @@ block content
section.us-content section.us-content
textarea(placeholder="Write a description of your user story", ng-model="us.description", tg-markitup) textarea(placeholder="Write a description of your user story", ng-model="us.description", tg-markitup)
- var attachModel = "us"
include views/modules/attachments include views/modules/attachments
textarea(ng-model="us.comment", placeholder="Write here a new commet") textarea(ng-model="us.comment", placeholder="Write here a new commet")

View File

@ -29,6 +29,7 @@ block content
section.us-content.wysiwyg(tg-bind-html="us.description_html") section.us-content.wysiwyg(tg-bind-html="us.description_html")
- var attachModel = "us"
include views/modules/attachments include views/modules/attachments
section.us-activity section.us-activity

View File

@ -21,4 +21,5 @@ block content
section.wysiwyg section.wysiwyg
textarea(placeholder="Write a your wiki page", ng-model="wiki.content", tg-markitup) textarea(placeholder="Write a your wiki page", ng-model="wiki.content", tg-markitup)
- var attachModel = "wiki"
include views/modules/attachments include views/modules/attachments

View File

@ -9,7 +9,6 @@ block content
sidebar.menu-secondary.extrabar sidebar.menu-secondary.extrabar
section.wiki-nav(tg-wiki-nav, ng-model="wikiLinks") section.wiki-nav(tg-wiki-nav, ng-model="wikiLinks")
section.main.wiki section.main.wiki
//Include views/components/mainTitle
header header
h1 h1
span(tg-bo-html="project.name") span(tg-bo-html="project.name")
@ -23,4 +22,5 @@ block content
section.wiki-content.wysiwyg(tg-bind-html="wiki.html") section.wiki-content.wysiwyg(tg-bind-html="wiki.html")
- var attachModel = "wiki"
include views/modules/attachments include views/modules/attachments