diff --git a/app/assets/javascripts/app/controllers/_channel/twitter.coffee b/app/assets/javascripts/app/controllers/_channel/twitter.coffee index 156eb26b9..03916b86e 100644 --- a/app/assets/javascripts/app/controllers/_channel/twitter.coffee +++ b/app/assets/javascripts/app/controllers/_channel/twitter.coffee @@ -3,6 +3,7 @@ class Index extends App.ControllerContent 'click .js-new': 'new' 'click .js-edit': 'edit' 'click .js-delete': 'delete' + 'click .js-create-app': 'createApp' constructor: -> super @@ -46,6 +47,18 @@ class Index extends App.ControllerContent # showDescription: showDescription # description: description + createApp: -> + modal = new App.ControllerModalNice + head: 'Connect Twitter App' + container: @el.parents('.content') + content: App.view('twitter/app_create') + shown: true + button: 'Connect' + cancel: true + onSubmit: () => + @html App.view('twitter/list')() + modal.close() + new: (e) -> # e.preventDefault() # new App.ControllerGenericNew( diff --git a/app/assets/javascripts/app/views/twitter/account_edit.jst.eco b/app/assets/javascripts/app/views/twitter/account_edit.jst.eco new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/app/views/twitter/app_create.jst.eco b/app/assets/javascripts/app/views/twitter/app_create.jst.eco new file mode 100644 index 000000000..611d05c6a --- /dev/null +++ b/app/assets/javascripts/app/views/twitter/app_create.jst.eco @@ -0,0 +1,32 @@ +
+ The tutorial on how to create a Twitter App is hosted on zammad.org/twitter-app-tutorial +
+ \ No newline at end of file diff --git a/app/assets/javascripts/app/views/twitter/index.jst.eco b/app/assets/javascripts/app/views/twitter/index.jst.eco index ea9ee5999..9d090c0af 100644 --- a/app/assets/javascripts/app/views/twitter/index.jst.eco +++ b/app/assets/javascripts/app/views/twitter/index.jst.eco @@ -2,11 +2,6 @@