summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/blueprint/BlueprintNotice.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-26 16:10:42 -0400
committerJules Laplace <jules@okfoc.us>2015-08-26 16:10:42 -0400
commit0e03cb3c4065e002be50d37e80ddfab1407c8e6b (patch)
tree56b79c22ff352ba892ee07801cf0a22b269c7429 /public/assets/javascripts/ui/blueprint/BlueprintNotice.js
parente350f13c3772d0f1f4053ce3c1a1dbc43713e4d0 (diff)
popup notice to start a project
Diffstat (limited to 'public/assets/javascripts/ui/blueprint/BlueprintNotice.js')
-rw-r--r--public/assets/javascripts/ui/blueprint/BlueprintNotice.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/blueprint/BlueprintNotice.js b/public/assets/javascripts/ui/blueprint/BlueprintNotice.js
new file mode 100644
index 0000000..bced4e1
--- /dev/null
+++ b/public/assets/javascripts/ui/blueprint/BlueprintNotice.js
@@ -0,0 +1,20 @@
+var BlueprintNotice = View.extend(ToggleableView.prototype).extend({
+
+ el: "#blueprintNotice",
+
+ initialize: function(opt){
+ this.parent = opt.parent
+ this.$notice = this.$(".notice")
+ },
+
+ notice: function(msg){
+ this.$notice.html(msg)
+ },
+
+ showCreateProjectNotice: function(){
+ this.notice("<a href='/project/blueprint/" + this.parent.data.slug +
+ "'>Start a new project</a> with this blueprint.")
+ this.show()
+ },
+
+}) \ No newline at end of file